Skip to content

Instantly share code, notes, and snippets.

@craigbilner
Last active July 17, 2018 11:03
Show Gist options
  • Save craigbilner/5dd55fca79df6e8a6c399e0b41a565e1 to your computer and use it in GitHub Desktop.
Save craigbilner/5dd55fca79df6e8a6c399e0b41a565e1 to your computer and use it in GitHub Desktop.
Example article query
{
article(id: "b5df0b22-8870-11e8-a0fd-e428ecc3ac12") {
id
headline
publicationName
publishedTime
label
standfirst
flags
byline
content
section
url
commentCount
commercialTags
commentsEnabled
leadAsset {
... on Video {
brightcovePolicyKey
brightcovePlayerId
brightcoveVideoId
brightcoveAccountId
paidOnly
type: __typename
posterImage {
id
title
credits
caption
crop(ratio: "16:9") {
ratio
url
}
}
}
... on Image {
type: __typename
id
title
credits
caption
crop(ratio: "16:9") {
ratio
url
}
}
}
relatedArticles {
id
headline
section
byline
label
publicationName
publishedTime
summary105: summary(maxCharCount: 105)
summary125: summary(maxCharCount: 125)
summary145: summary(maxCharCount: 145)
summary160: summary(maxCharCount: 160)
summary175: summary(maxCharCount: 175)
summary225: summary(maxCharCount: 225)
leadAsset {
... on Image {
id
title
crop169: crop(ratio: "16:9") {
url
}
crop32: crop(ratio: "3:2") {
url
}
}
}
url
}
relatedArticlesLayout {
template
... on LeadAndTwo {
main
}
... on OpinionAndTwo {
main
}
}
topics {
name
slug
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment