/typeDefs.js Secret
Created
March 30, 2020 16:45
This file contains 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