-
-
Save lucasconstantino/96867b62c7f8e914fa8af1af54d55a76 to your computer and use it in GitHub Desktop.
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 typeDefs = ` | |
type Post { | |
id: Int! | |
title: String | |
body: String | |
} | |
type User { | |
id: Int! | |
username: String | |
email: String | |
} | |
type Query { | |
posts: [Post] | |
post (id: Int!): Post | |
users: [User] | |
user: User | |
} | |
schema { | |
query: Query | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment