Skip to content

Instantly share code, notes, and snippets.

@ndreckshage
Created January 27, 2022 05:00
Show Gist options
  • Save ndreckshage/2f4a8ad7f60264951c63b3ab7af7ceb6 to your computer and use it in GitHub Desktop.
Save ndreckshage/2f4a8ad7f60264951c63b3ab7af7ceb6 to your computer and use it in GitHub Desktop.
homepage query
fragment MarkdownComponentFragment on MarkdownComponent {
id
text
backgroundColor
}
fragment LayoutComponentFragment on LayoutComponent {
id
layoutCreatedBy: createdBy
flexDirection
title
}
fragment CarouselComponentFragment on CarouselComponent {
id
title
link {
href
title
variant
}
pageSize
cards {
id
href
image
}
createdBy
}
fragment ListComponentFragment on ListComponent {
id
title
# other fields
}
fragment ComponentFragment on Component {
__typename
...LayoutComponentFragment
...CarouselComponentFragment
...ListComponentFragment
...MarkdownComponentFragment
}
query GetLayout {
layout(
id: "319284825818136644"
contextType: NONE
contextKey: ""
) {
...ComponentFragment
components {
...ComponentFragment
... on LayoutComponent {
components {
...ComponentFragment
... on LayoutComponent {
components {
...ComponentFragment
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment