Last active
November 24, 2019 05:22
-
-
Save DanielCender/ebda6b9fa2ad63fda71c25c981f19387 to your computer and use it in GitHub Desktop.
A sample mutation on an Order type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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