Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active December 17, 2020 10:18
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 velotiotech/ff0118f2039937059753c6948c4f2a77 to your computer and use it in GitHub Desktop.
Save velotiotech/ff0118f2039937059753c6948c4f2a77 to your computer and use it in GitHub Desktop.
const { blogPostById } = useLazyLoadQuery<GetBlogPost>(
graphql`
query GetBlogPost($postId: ID!) {
blogPostById(id: $postId) {
...BlogPostHead_blogPost
...BlogPostBody_blogPost
}
}
`,
{
variables: { postId }
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment