Last active
June 8, 2017 17:10
-
-
Save alesanabriav/a61f495e337e2fd8f4c28202f9658edf to your computer and use it in GitHub Desktop.
Graphql post type
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
let postType = new GraphQLObjectType({ | |
name: "todo", | |
fields: () => ({ | |
title: { type: GraphQLString }, | |
author: { type: GraphQLString }, | |
body: { type: GraphQLString } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment