Last active
November 14, 2018 14:32
-
-
Save apostopher/84573d2589c6167e56915eea9b609fa5 to your computer and use it in GitHub Desktop.
GraphQL schema
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
directive @isAuthenticated(strict: Boolean) on FIELD_DEFINITION | |
type Post { | |
title: String! | |
body: String! | |
} | |
type Query { | |
getPosts: [Post] | |
} | |
type Mutation { | |
"Create a new blog post" | |
createPost( | |
title: String! | |
body: String! | |
): Post @isAuthenticated(strict: true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment