Created
July 17, 2019 12:53
-
-
Save bartcis/a91d3a68f18889ac06beead354c63dd3 to your computer and use it in GitHub Desktop.
GraphQL schema excercise
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
| const { gql } = require('apollo-server'); | |
| const typeDefs = gql` | |
| type Book { | |
| title: String | |
| author: String | |
| } | |
| type Country { | |
| name: String | |
| population: String | |
| inNato: Boolean | |
| id: String | |
| } | |
| type Query { | |
| books: [Book], | |
| countries: [Country], | |
| } | |
| `; | |
| module.exports = typeDefs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment