Skip to content

Instantly share code, notes, and snippets.

@bartcis
Created August 11, 2019 08:37
Show Gist options
  • Save bartcis/5c45681bc27ea602f0266b65d3a92199 to your computer and use it in GitHub Desktop.
Save bartcis/5c45681bc27ea602f0266b65d3a92199 to your computer and use it in GitHub Desktop.
const { gql } = require('apollo-server');
const typeDefs = gql`
type Country {
name: String!
population: String!
inNato: Boolean!
id: Int!
}
type Query {
countries: [Country],
country(id: Int!): Country,
}
`;
module.exports = typeDefs;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment