Skip to content

Instantly share code, notes, and snippets.

@qubal
Created March 30, 2020 16:45
Show Gist options
  • Save qubal/9e41fbe0ae9bc6ea29b7d112e78dda39 to your computer and use it in GitHub Desktop.
Save qubal/9e41fbe0ae9bc6ea29b7d112e78dda39 to your computer and use it in GitHub Desktop.
const gql = require("appollo-server");
module.exports = gql`
type Post {
id: ID!
body: String!
createdAt: String!
username: String!
}
type Query {
getPosts: [Post]
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment