Skip to content

Instantly share code, notes, and snippets.

@RyanCCollins
Created February 18, 2017 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanCCollins/345839bb562630ffc0596bf68c2aeebb to your computer and use it in GitHub Desktop.
Save RyanCCollins/345839bb562630ffc0596bf68c2aeebb to your computer and use it in GitHub Desktop.
import {
GraphQLInputObjectType,
GraphQLString,
GraphQLID,
GraphQLNonNull,
} from 'graphql';
export default new GraphQLInputObjectType({
name: 'CommentInput',
fields: () => ({
author: { type: GraphQLString },
body: { type: GraphQLString },
post: { type: new GraphQLNonNull(GraphQLID) },
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment