126 lines
1.3 KiB
Plaintext
126 lines
1.3 KiB
Plaintext
# http://localhost:8080/
|
|
|
|
query {
|
|
me {
|
|
id
|
|
full_name
|
|
}
|
|
}
|
|
|
|
query {
|
|
customers {
|
|
id
|
|
email
|
|
payments {
|
|
customer_id
|
|
amount
|
|
billing_details
|
|
}
|
|
}
|
|
}
|
|
|
|
query {
|
|
products(id: $PRODUCT_ID) {
|
|
name
|
|
}
|
|
}
|
|
|
|
query {
|
|
products(id: $PRODUCT_ID) {
|
|
name
|
|
image
|
|
}
|
|
}
|
|
|
|
query {
|
|
products(
|
|
limit: 30
|
|
order_by: { price: desc }
|
|
distinct: [price]
|
|
where: { id: { and: { greater_or_equals: 20, lt: 28 } } }
|
|
) {
|
|
id
|
|
name
|
|
price
|
|
user {
|
|
id
|
|
email
|
|
}
|
|
}
|
|
|
|
variables {
|
|
"insert": {
|
|
"name": "Hello",
|
|
"description": "World",
|
|
"created_at": "now",
|
|
"updated_at": "now"
|
|
},
|
|
"user": 123
|
|
}
|
|
|
|
mutation {
|
|
products(insert: $insert) {
|
|
id
|
|
name
|
|
description
|
|
}
|
|
}
|
|
|
|
variables {
|
|
"insert": {
|
|
"name": "Hello",
|
|
"description": "World",
|
|
"created_at": "now",
|
|
"updated_at": "now"
|
|
},
|
|
"user": 123
|
|
}
|
|
|
|
mutation {
|
|
products(insert: $insert) {
|
|
id
|
|
}
|
|
}
|
|
|
|
variables {
|
|
"insert": {
|
|
"description": "World3",
|
|
"name": "Hello3",
|
|
"created_at": "now",
|
|
"updated_at": "now"
|
|
},
|
|
"user": 123
|
|
}
|
|
|
|
{
|
|
customers {
|
|
id
|
|
email
|
|
payments {
|
|
customer_id
|
|
amount
|
|
billing_details
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
variables {
|
|
"insert": {
|
|
"description": "World3",
|
|
"name": "Hello3",
|
|
"created_at": "now",
|
|
"updated_at": "now"
|
|
},
|
|
"user": 123
|
|
}
|
|
|
|
{
|
|
me {
|
|
id
|
|
full_name
|
|
}
|
|
}
|
|
|
|
|