first commit
This commit is contained in:
commit
e1362c0d36
25 changed files with 13100 additions and 0 deletions
22
queries/gifts.gql
Normal file
22
queries/gifts.gql
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
}
|
||||
}
|
6
queries/singles/homepage.gql
Normal file
6
queries/singles/homepage.gql
Normal file
|
@ -0,0 +1,6 @@
|
|||
query getHomepage {
|
||||
homepage {
|
||||
date_updated
|
||||
content
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue