mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 22:34:22 +03:00
753c94e31e
GITHUB_PR_NUMBER: 9213 GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9213 PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6890 Co-authored-by: arjunyel <11153289+arjunyel@users.noreply.github.com> GitOrigin-RevId: 38f41f010759b06ae3c0c3031a56659c8d040c77
30 lines
436 B
GraphQL
30 lines
436 B
GraphQL
query GetProducts {
|
|
product(limit: 10) {
|
|
id
|
|
name
|
|
}
|
|
}
|
|
|
|
query GetProduct($id: Int!) {
|
|
product_by_pk(id: $id) {
|
|
id
|
|
description
|
|
name
|
|
price
|
|
image_urls(path: "$[0]")
|
|
}
|
|
}
|
|
|
|
mutation PlaceOrder($products: order_product_arr_rel_insert_input!) {
|
|
insert_order_one(
|
|
object: {
|
|
products: $products
|
|
billing_address_id: 222
|
|
user_id: 225
|
|
shipping_address_id: 222
|
|
}
|
|
) {
|
|
id
|
|
}
|
|
}
|