habiller-bebe/queries/gifts.gql

23 lines
364 B
Plaintext
Raw Permalink Normal View History

2023-11-02 15:42:34 +01:00
query gifts($sort: [String!]) {
gifts(filter: { status: { _eq: "published" } }, sort: $sort) {
status
id
name
url
prix
used
description
from
reserved
photo {
id
filename_disk
}
}
}
mutation UpdateItem($id: ID!, $reserved: Boolean!, $name: String!) {
update_gifts_item(id: $id, data: { reserved: $reserved, from: $name }) {
id
}
}