Files
blog-ahmza-com/tina/__generated__/queries.gql
T
2023-11-11 01:27:05 +00:00

106 lines
1.8 KiB
GraphQL

query post($relativePath: String!) {
post(relativePath: $relativePath) {
... on Document {
_sys {
filename
basename
breadcrumbs
path
relativePath
extension
}
id
}
...PostParts
}
}
query postConnection($before: String, $after: String, $first: Float, $last: Float, $sort: String, $filter: PostFilter) {
postConnection(
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
}
...PostParts
}
}
}
}
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
}
}
}
}