2019-07-29 07:49:48 +02:00
|
|
|
# http://localhost:8080/
|
2019-07-29 07:13:33 +02:00
|
|
|
|
2019-10-03 16:24:11 +02:00
|
|
|
variables {
|
|
|
|
"update": {
|
|
|
|
"name": "Wu-Tang",
|
|
|
|
"description": "No description needed"
|
|
|
|
},
|
|
|
|
"product_id": 1
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation {
|
|
|
|
products(id: $product_id, update: $update) {
|
2019-10-01 06:00:15 +02:00
|
|
|
id
|
2019-10-03 16:24:11 +02:00
|
|
|
name
|
|
|
|
description
|
2019-10-01 06:00:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-06 06:34:23 +02:00
|
|
|
variables {
|
2019-10-03 16:24:11 +02:00
|
|
|
"data": {
|
|
|
|
"email": "gfk@myspace.com",
|
|
|
|
"full_name": "Ghostface Killah",
|
2019-10-01 06:00:15 +02:00
|
|
|
"created_at": "now",
|
|
|
|
"updated_at": "now"
|
2019-10-03 16:24:11 +02:00
|
|
|
}
|
2019-07-29 07:13:33 +02:00
|
|
|
}
|
|
|
|
|
2019-09-06 06:34:23 +02:00
|
|
|
mutation {
|
2019-10-03 16:24:11 +02:00
|
|
|
user(insert: $data) {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variables {
|
|
|
|
"data": {
|
|
|
|
"product_id": 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation {
|
|
|
|
products(id: $product_id, delete: true) {
|
2019-07-29 07:13:33 +02:00
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-01 06:00:15 +02:00
|
|
|
query {
|
|
|
|
users {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
picture: avatar
|
|
|
|
products(limit: 2, where: {price: {gt: 10}}) {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
description
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-05 06:09:56 +02:00
|
|
|
variables {
|
2019-10-03 16:24:11 +02:00
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"name": "Protect Ya Neck",
|
|
|
|
"created_at": "now",
|
|
|
|
"updated_at": "now"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Enter the Wu-Tang",
|
|
|
|
"created_at": "now",
|
|
|
|
"updated_at": "now"
|
|
|
|
}
|
|
|
|
]
|
2019-09-05 06:09:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
mutation {
|
2019-10-03 16:24:11 +02:00
|
|
|
products(insert: $data) {
|
2019-09-05 06:09:56 +02:00
|
|
|
id
|
2019-09-06 06:34:23 +02:00
|
|
|
name
|
2019-10-03 16:24:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query {
|
|
|
|
me {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
full_name
|
2019-09-05 06:09:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-26 06:35:31 +02:00
|
|
|
variables {
|
|
|
|
"update": {
|
2019-10-01 06:00:15 +02:00
|
|
|
"name": "Helloo",
|
|
|
|
"description": "World \u003c\u003e"
|
2019-09-26 06:35:31 +02:00
|
|
|
},
|
|
|
|
"user": 123
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation {
|
2019-10-01 06:00:15 +02:00
|
|
|
products(id: 5, update: $update) {
|
2019-09-06 06:34:23 +02:00
|
|
|
id
|
2019-09-26 06:35:31 +02:00
|
|
|
name
|
|
|
|
description
|
2019-09-06 06:34:23 +02:00
|
|
|
}
|
2019-10-03 16:24:11 +02:00
|
|
|
}
|