110 lines
1.9 KiB
GraphQL
110 lines
1.9 KiB
GraphQL
query news($relativePath: String!) {
|
|
news(relativePath: $relativePath) {
|
|
... on Document {
|
|
_sys {
|
|
filename
|
|
basename
|
|
hasReferences
|
|
breadcrumbs
|
|
path
|
|
relativePath
|
|
extension
|
|
}
|
|
id
|
|
}
|
|
...NewsParts
|
|
}
|
|
}
|
|
|
|
query newsConnection($before: String, $after: String, $first: Float, $last: Float, $sort: String, $filter: NewsFilter) {
|
|
newsConnection(
|
|
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
|
|
hasReferences
|
|
breadcrumbs
|
|
path
|
|
relativePath
|
|
extension
|
|
}
|
|
id
|
|
}
|
|
...NewsParts
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query documentaries($relativePath: String!) {
|
|
documentaries(relativePath: $relativePath) {
|
|
... on Document {
|
|
_sys {
|
|
filename
|
|
basename
|
|
hasReferences
|
|
breadcrumbs
|
|
path
|
|
relativePath
|
|
extension
|
|
}
|
|
id
|
|
}
|
|
...DocumentariesParts
|
|
}
|
|
}
|
|
|
|
query documentariesConnection($before: String, $after: String, $first: Float, $last: Float, $sort: String, $filter: DocumentariesFilter) {
|
|
documentariesConnection(
|
|
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
|
|
hasReferences
|
|
breadcrumbs
|
|
path
|
|
relativePath
|
|
extension
|
|
}
|
|
id
|
|
}
|
|
...DocumentariesParts
|
|
}
|
|
}
|
|
}
|
|
}
|