Skip to content

Instantly share code, notes, and snippets.

@debpu06
Last active August 31, 2020 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debpu06/20950d3bdd7853d3c497180da513edf6 to your computer and use it in GitHub Desktop.
Save debpu06/20950d3bdd7853d3c497180da513edf6 to your computer and use it in GitHub Desktop.
FiftyFiftyContent Gatsby-Contentful Fragment
import { graphql } from "gatsby"
export const FiftyFiftyContentQuery = graphql`
fragment FiftyFiftyContent on ContentfulFiftyFifty {
id
sys {
contentType {
sys {
id
}
}
}
left {
__typename
... on Node {
... HeroBlock
... TextBlock
... Image
}
}
right {
__typename
... on Node {
... HeroBlock
... TextBlock
... Image
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment