88 lines
1.0 KiB
Plaintext
88 lines
1.0 KiB
Plaintext
# http://localhost:8080/
|
|
|
|
query {
|
|
me {
|
|
id
|
|
email
|
|
full_name
|
|
}
|
|
}
|
|
|
|
variables {
|
|
"update": {
|
|
"name": "Hellooooo",
|
|
"description": "World",
|
|
"created_at": "now",
|
|
"updated_at": "now"
|
|
},
|
|
"user": 123
|
|
}
|
|
|
|
mutation {
|
|
products(update: $update, where: {id: {eq: 134}}) {
|
|
id
|
|
name
|
|
description
|
|
}
|
|
}
|
|
|
|
query {
|
|
users {
|
|
id
|
|
email
|
|
picture: avatar
|
|
products(limit: 2, where: {price: {gt: 10}}) {
|
|
id
|
|
name
|
|
description
|
|
}
|
|
}
|
|
}
|
|
|
|
variables {
|
|
"update": {
|
|
"name": "Hellooooo",
|
|
"description": "World"
|
|
},
|
|
"user": 123
|
|
}
|
|
|
|
mutation {
|
|
products(update: $update, where: {id: {eq: 134}}) {
|
|
id
|
|
name
|
|
description
|
|
}
|
|
}
|
|
|
|
variables {
|
|
"update": {
|
|
"name": "Helloo",
|
|
"description": "World \u003c\u003e"
|
|
},
|
|
"user": 123
|
|
}
|
|
|
|
mutation {
|
|
products(id: 5, update: $update) {
|
|
id
|
|
name
|
|
description
|
|
}
|
|
}
|
|
|
|
query {
|
|
users {
|
|
id
|
|
email
|
|
picture: avatar
|
|
products(limit: 2, where: {price: {gt: 10}}) {
|
|
id
|
|
name
|
|
description
|
|
}
|
|
}
|
|
}
|
|
|
|
|