Files
twenty/front/src/modules/search/graphql/queries/searchCompanyQuery.ts
Lucas Bordeau 9be069bedc Fixed bug for refectch activities and create activity on the currently filtered user. (#1493)
* Fixed bug for refectch activities and create activity on the currently filtered user.

* Refactor optimistif effect

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-09-10 23:02:51 -07:00

18 lines
355 B
TypeScript

import { gql } from '@apollo/client';
export const SEARCH_COMPANY_QUERY = gql`
query SearchCompany(
$where: CompanyWhereInput
$limit: Int
$orderBy: [CompanyOrderByWithRelationInput!]
) {
searchResults: findManyCompany(
where: $where
take: $limit
orderBy: $orderBy
) {
...companyFieldsFragment
}
}
`;