Files
twenty/front/src/modules/people/graphql/mutations/updateOnePerson.ts
gitstart-twenty 103fb701e7 Chore: Use Fragments as types (#1670)
* Use Fragments as types

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Use Fragments as types in GraphQL queries and mutations

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-09-20 10:58:59 +02:00

13 lines
270 B
TypeScript

import { gql } from '@apollo/client';
export const UPDATE_ONE_PERSON = gql`
mutation UpdateOnePerson(
$where: PersonWhereUniqueInput!
$data: PersonUpdateInput!
) {
updateOnePerson(data: $data, where: $where) {
...personFieldsFragment
}
}
`;