Skip to content

Instantly share code, notes, and snippets.

@salami-art
Created July 1, 2022 13:05
Show Gist options
  • Save salami-art/3e81ff41249932e805f20846eeb2388c to your computer and use it in GitHub Desktop.
Save salami-art/3e81ff41249932e805f20846eeb2388c to your computer and use it in GitHub Desktop.
{
"workspace": "kolumbus",
"collection": "meteoweb",
"type": "gallery",
"advancedCategoryTerm": {
"categoryTerms": "/meteoweb",
"searchInSecondaryCategory": true,
"searchInChildCategories": true
},
"paging": {
"limit": 3,
"skip": 0
},
"sort": {
"orderBy": "PUBFROMDATE"
},
"notIds": "1000027666,1000040922,1000040925,1000040919"
}
query getContents(
$workspace: String = "kolumbus"
$collection: String!
$advancedCategoryTerm: AdvancedCategoryTerm
$type: String!
$paging: SearchPaging
$sort: SearchSort
$notIds: String!
) {
contents: getContents(
workspace: $workspace
collection: $collection
advancedCategoryTerm: $advancedCategoryTerm
type: $type
paging: $paging
sort: $sort
notIds: $notIds
) {
sequences {
...TeaserFields
}
}
}
fragment TeaserFields on Sequence {
id
sequenceNumber
categories {
categoryTerm
sequence
zone
template
block
pubFromDate
attributes {
key
value
}
}
data {
...ContentFieldFields
}
media {
...MediaFields
}
tags {
type
value
}
targetLink
}
fragment ContentFieldFields on ContentField {
fieldTypeId
value
}
fragment MediaFields on Media {
id
href {
...MediaLinkFields
}
hrefThumb {
...MediaLinkFields
}
hrefHd {
...MediaLinkFields
}
data {
...ContentFieldFields
}
cuts {
...MediaLinkFields
}
}
fragment MediaLinkFields on MediaLink {
name
url
contentType
width
height
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment