-
-
Save qubal/9e41fbe0ae9bc6ea29b7d112e78dda39 to your computer and use it in GitHub Desktop.
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("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