graphql-engine/community/sample-apps/nextjs-13/queries.graphql
hasura-bot 753c94e31e community: add nextjs-13 sample app
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
2023-02-01 12:32:07 +00:00

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
}
}