Last active
December 17, 2020 10:18
-
-
Save velotiotech/ff0118f2039937059753c6948c4f2a77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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