Skip to content

Instantly share code, notes, and snippets.

@bartcis
Created July 17, 2019 12:53
Show Gist options
  • Select an option

  • Save bartcis/a91d3a68f18889ac06beead354c63dd3 to your computer and use it in GitHub Desktop.

Select an option

Save bartcis/a91d3a68f18889ac06beead354c63dd3 to your computer and use it in GitHub Desktop.
GraphQL schema excercise
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