Created
July 17, 2019 13:46
-
-
Save bartcis/310ab7ebb9bb68f45384dbf1bc1c260e to your computer and use it in GitHub Desktop.
Define simple query in graphQL
This file contains hidden or 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
| import { Query } from 'react-apollo' | |
| import gql from 'graphql-tag' | |
| const countiresQuery = gql` { | |
| countries { | |
| name | |
| population | |
| inNato | |
| } | |
| }` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment