Skip to content

Instantly share code, notes, and snippets.

@DanielCender
Last active November 24, 2019 05:22
Show Gist options
  • Save DanielCender/ebda6b9fa2ad63fda71c25c981f19387 to your computer and use it in GitHub Desktop.
Save DanielCender/ebda6b9fa2ad63fda71c25c981f19387 to your computer and use it in GitHub Desktop.
A sample mutation on an Order type
import gql from 'graphql-tag';
const createOrder = gql`
mutation CreateOrder($input: CreateOrderInput!) {
onCreateOrder(input: $input) {
id
orderCustomerId
customer {
id
name
}
barista {
id
name
}
}
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment