Skip to content

Instantly share code, notes, and snippets.

@gmac
Created April 22, 2020 21:48
Show Gist options
  • Save gmac/9e3d9d1c79cf0bba4b4c046ad521589a to your computer and use it in GitHub Desktop.
Save gmac/9e3d9d1c79cf0bba4b4c046ad521589a to your computer and use it in GitHub Desktop.
Chorus EntryBody query
query FetchEntry($uuid: String!) {
entry(uuid: $uuid) {
body {
components {
type
attributes {
alignment
}
...ActionboxAttrs
...BlockquoteAttrs
...BodyImageAttrs
...EmbedAttrs
...GalleryAttrs
...HeadingAttrs
...HTMLAttrs
...ImageComparisonAttrs
...ImageGroupAttrs
...JSONAttrs
...ListAttrs
...ParagraphAttrs
...PullquoteAttrs
...RatingcardAttrs
...RelatedListAttrs
...SidebarAttrs
...TableAttrs
...VideoAttrs
}
}
}
}
fragment ActionboxAttrs on EntryBodyActionbox {
description {
ops
}
heading {
ops
}
label {
ops
}
url
}
fragment BlockquoteAttrs on EntryBodyBlockquote {
paragraphs {
...ParagraphAttrs
}
}
fragment BodyImageAttrs on EntryBodyImage {
image {
...ImageAttrs
}
}
fragment EmbedAttrs on EntryBodyEmbed {
author {
name
url
}
embedHtml
provider {
name
url
}
url
}
fragment GalleryAttrs on EntryBodyGallery {
images {
...ImageAttrs
}
title
}
fragment HeadingAttrs on EntryBodyHeading {
level
ops
}
fragment HTMLAttrs on EntryBodyHTML {
innerHtml
}
fragment ImageAttrs on EntryImage {
caption {
ops
}
credit {
ops
}
url
}
fragment ImageComparisonAttrs on EntryBodyImageComparison {
caption {
ops
}
images {
...ImageAttrs
}
}
fragment ImageGroupAttrs on EntryBodyImageGroup {
images {
...ImageAttrs
}
layout
}
fragment JSONAttrs on EntryBodyJSON {
data
schemaName
}
fragment ListAttrs on EntryBodyList {
items {
ops
}
ordered
}
fragment ParagraphAttrs on EntryBodyParagraph {
format {
dropcap
endmark
lead
}
ops
}
fragment PullquoteAttrs on EntryBodyPullquote {
quote {
ops
}
}
fragment RatingcardAttrs on EntryBodyRatingcard {
maxRating
rating
title
}
fragment RelatedListAttrs on EntryBodyRelatedList {
items {
title
url
}
}
fragment SidebarAttrs on EntryBodySidebar {
body {
type
...BlockquoteAttrs
...BodyImageAttrs
...EmbedAttrs
...HeadingAttrs
...HTMLAttrs
...JSONAttrs
...ListAttrs
...ParagraphAttrs
...PullquoteAttrs
...RatingcardAttrs
...VideoAttrs
}
}
fragment TableAttrs on EntryBodyTable {
caption {
ops
}
columns
credit {
ops
}
rows
tableSort {
columnIndex
descending
}
title
}
fragment VideoAttrs on EntryBodyVideo {
source {
id
provider
}
title
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment