Files
twenty/front/src/modules/companies/queries/update.ts
T
Emilien Chauvet 73e9104b16 Add linkedinUrl and job titles to table views (#809)
* Add linedinUrl and job titles to table views

* Keep address in the end

* Add mock data
2023-07-21 15:18:19 -07:00

48 lines
874 B
TypeScript

import { gql } from '@apollo/client';
export const UPDATE_ONE_COMPANY = gql`
mutation UpdateOneCompany(
$where: CompanyWhereUniqueInput!
$data: CompanyUpdateInput!
) {
updateOneCompany(data: $data, where: $where) {
accountOwner {
id
email
displayName
firstName
lastName
}
address
createdAt
domainName
employees
linkedinUrl
id
name
}
}
`;
export const INSERT_ONE_COMPANY = gql`
mutation InsertOneCompany($data: CompanyCreateInput!) {
createOneCompany(data: $data) {
address
createdAt
domainName
linkedinUrl
employees
id
name
}
}
`;
export const DELETE_MANY_COMPANIES = gql`
mutation DeleteManyCompanies($ids: [String!]) {
deleteManyCompany(where: { id: { in: $ids } }) {
count
}
}
`;