Skip to content

Instantly share code, notes, and snippets.

@matepaiva
Created July 26, 2021 09:04
Show Gist options
  • Save matepaiva/8b4d7102a29345f87f64eaa4539c80c6 to your computer and use it in GitHub Desktop.
Save matepaiva/8b4d7102a29345f87f64eaa4539c80c6 to your computer and use it in GitHub Desktop.
query pages_indexQuery {
timeline(context: HOMEPAGE) {
...Timeline_data
}
}
fragment Advertisement_data on Advertisement {
reviveId: id
responsiveId: responsive_id
is_hidden
hideLabel
}
fragment DoubleAdvertisement_data on DoubleAdvertisement {
layout
advertisements {
id
...Advertisement_data
}
}
fragment usePrimaryCategoryProperty_Post_categories on PostToCategoryConnection {
nodes {
name
slug
isHidden
}
}
fragment Callout_item on Post {
id
date
title
excerpt
slug
pmproMembershipAccess {
levels {
id
name
}
}
categories {
...usePrimaryCategoryProperty_Post_categories
nodes {
databaseId
id
name
slug
isHidden
}
}
author {
node {
id
name
}
}
featuredImage {
node {
id
altText
sourceUrl
mediaDetails {
width
height
}
}
}
}
fragment CalloutInjectionBrandsharePremiumList_data on CalloutInjectionBrandsharePremiumList {
list {
slug
name
squareImage
}
}
fragment Link_Action_InstitutionalContent_data on InstitutionalContentActionLink {
href
label
style
}
fragment NewsletterSubscribe_Action_InstitutionalContent_data on InstitutionalContentActionNewsletterSubscribe {
label
style
}
fragment Action_InstitutionalContent_data on InstitutionalContent {
action {
type: __typename
... on InstitutionalContentActionLink {
...Link_Action_InstitutionalContent_data
}
... on InstitutionalContentActionNewsletterSubscribe {
...NewsletterSubscribe_Action_InstitutionalContent_data
}
}
}
fragment InstitutionalContent_data on InstitutionalContent {
title
excerpt
content
bgColor
txtColor
featuredImage {
node {
altText
sourceUrl
}
}
...Action_InstitutionalContent_data
}
fragment CalloutInjectionLatestNewsList_data on LatestNewsList {
title
posts(first: 10) {
nodes {
id
title
slug
date
}
}
}
fragment CalloutInjection_union on CalloutInjectionUnion {
type: __typename
... on Advertisement {
...Advertisement_data
}
... on DoubleAdvertisement {
...DoubleAdvertisement_data
}
... on CalloutInjectionBrandsharePremiumList {
...CalloutInjectionBrandsharePremiumList_data
}
... on InstitutionalContent {
...InstitutionalContent_data
}
... on LatestNewsList {
...CalloutInjectionLatestNewsList_data
}
}
fragment CalloutsTree_data on CalloutTree {
superFeaturedPosts {
nodes {
id
...Callout_item
}
}
featuredPosts {
nodes {
id
...Callout_item
}
}
subFeaturedPosts {
nodes {
id
...Callout_item
}
}
regularPosts {
pageInfo {
endCursor
}
nodes {
id
...Callout_item
}
}
regularInjections {
index
id
union {
...CalloutInjection_union
}
}
beforeRegularInjections {
index
id
union {
...CalloutInjection_union
}
}
subFeaturedInjections {
index
id
union {
...CalloutInjection_union
}
}
featuredInjections {
index
id
union {
...CalloutInjection_union
}
}
superFeaturedInjections {
index
id
union {
...CalloutInjection_union
}
}
}
fragment CategoryPreview_data on Category {
name
slug
sponsorshipLogotype
sponsorshipUrl
advertisement {
id
...Advertisement_data
}
posts(first: 7, where: { orderby: { order: ASC, field: MENU_ORDER } }) {
nodes {
id
...Callout_item
}
}
}
fragment Dossier_data on Dossier {
name
slug
advertisement {
...Advertisement_data
}
sponsorshipLogotype
sponsorshipUrl
posts(first: 7) {
nodes {
id
...Callout_item
}
}
}
fragment HeadlessPopularPostsGA_data on HeadlessPopularPostsGA {
popularPosts(first: 5) {
nodes {
id
...Callout_item
}
}
}
fragment OpinionCalloutItem_item on Opinion {
id
date
title
excerpt
slug
author {
node {
id
name
description
avatar(size: 96) {
width
height
url
}
}
}
}
fragment OpinionCalloutList_data on OpinionList {
opinions {
nodes {
id
...OpinionCalloutItem_item
}
}
}
fragment LazyLatestPosts_data on LazyLatestPosts {
slug
context
}
fragment Timeline_data on Timeline {
components {
type: __typename
... on Advertisement {
...Advertisement_data
}
... on DoubleAdvertisement {
...DoubleAdvertisement_data
}
... on CalloutTree {
key: __typename
...CalloutsTree_data
}
... on Category {
key: id
...CategoryPreview_data
}
... on Dossier {
key: id
...Dossier_data
}
... on HeadlessPopularPostsGA {
key: __typename
...HeadlessPopularPostsGA_data
}
... on OpinionList {
key: __typename
...OpinionCalloutList_data
}
... on InstitutionalContent {
key: id
...InstitutionalContent_data
}
... on LazyLatestPosts {
...LazyLatestPosts_data
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment