* 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>
13 lines
270 B
TypeScript
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
|
|
}
|
|
}
|
|
`;
|