-
Notifications
You must be signed in to change notification settings - Fork 0
orders graphql queries
Herb Stahl edited this page May 29, 2019
·
1 revision
mutation q($input: OrderInput!){
createOrder(order: $input){
created
customer{
id
name
}
description
id
name
status
}
}
{
"input": {
"name":"Glenn",
"description":"Test",
"customerId":"1",
"created":"03/16/2018"
}
}
{
"data": {
"createOrder": {
"created": "2018-03-16",
"customer": {
"id": 1,
"name": "KinetEco"
},
"description": "Test",
"id": "d5370a81-e801-4e91-aa5b-c756ccee3b85",
"name": "Glenn",
"status": "CREATED"
}
}
}
query{
orders{
created
customer{
id
name
}
description
id
name
status
}
}
query{
orderById(orderId:"FAEBD971-CBA5-4CED-8AD5-CC0B8D4B7827" ){
created
customer{
id
name
}
description
id
name
status
}
}
query getCustomers {
customers {
id
name
}
}