Files
twenty/front/src/modules/companies/graphql/fragments/companyFieldsFragment.ts
Charles Bochet 708391460c Fix optimistic effects to work with fragments (#1683)
* Fix optimistic effects to work with fragments

* Regenerate
2023-09-20 16:13:54 -07:00

38 lines
678 B
TypeScript

import { gql } from '@apollo/client';
export const BASE_COMPANY_FIELDS_FRAGMENT = gql`
fragment baseCompanyFieldsFragment on Company {
address
annualRecurringRevenue
createdAt
domainName
employees
id
idealCustomerProfile
linkedinUrl
name
xUrl
_activityCount
}
`;
export const BASE_ACCOUNT_OWNER_FRAGMENT = gql`
fragment baseAccountOwnerFragment on User {
id
email
displayName
avatarUrl
firstName
lastName
}
`;
export const COMPANY_FIELDS_FRAGMENT = gql`
fragment companyFieldsFragment on Company {
accountOwner {
...baseAccountOwnerFragment
}
...baseCompanyFieldsFragment
}
`;