I have this query defined, and use it succesfully in my app:
export const GET_TEAM = gql`
query($id: ID!) {
getTeam(id: $id) {
...CompleteTeam
}
}
${fragments.team}
`
But would like to use it for mocking purpose, and for that I need this representation:
getTeam(id: 3) {
id
name
isActivated
}
Is there any easy way to call gql with variables to accomplish?
There are suggestions how to do this with an instance of ApolloClient. But if possible I'd rather skip involvning the client as I will only mock the resulting data.