Created
August 20, 2018 12:38
-
-
Save kdipaolo/bffa82468382c35a0d3c9745d3286a24 to your computer and use it in GitHub Desktop.
Named GraphQL Queries
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
// Name your graph ql queries so that they show up in apollos's dev tools | |
// allPosts will show up in apollos dev tools | |
const POSTS_QUERY = gql` | |
query allPosts { | |
posts { | |
id | |
title | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment