fixing tina

This commit is contained in:
Hamza Ahmed
2023-11-11 01:27:05 +00:00
parent 77c9e6b7db
commit 79a42ff9d5
10 changed files with 281 additions and 11 deletions
+53
View File
@@ -50,3 +50,56 @@ query postConnection($before: String, $after: String, $first: Float, $last: Floa
}
}
}
query products($relativePath: String!) {
products(relativePath: $relativePath) {
... on Document {
_sys {
filename
basename
breadcrumbs
path
relativePath
extension
}
id
}
...ProductsParts
}
}
query productsConnection($before: String, $after: String, $first: Float, $last: Float, $sort: String, $filter: ProductsFilter) {
productsConnection(
before: $before
after: $after
first: $first
last: $last
sort: $sort
filter: $filter
) {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
totalCount
edges {
cursor
node {
... on Document {
_sys {
filename
basename
breadcrumbs
path
relativePath
extension
}
id
}
...ProductsParts
}
}
}
}