Skip to content

Instantly share code, notes, and snippets.

@jelorivera08
Created January 23, 2020 05:24
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 jelorivera08/cdef9b47a2cc9c06cf43be305135f62b to your computer and use it in GitHub Desktop.
Save jelorivera08/cdef9b47a2cc9c06cf43be305135f62b to your computer and use it in GitHub Desktop.
const { GraphQLObjectType, GraphQLID, GraphQLString } = require('graphql');
const noteType = new GraphQLObjectType({
name: 'Note',
fields: {
_id: { type: GraphQLID },
content: { type: GraphQLString }
}
});
module.exports = { noteType };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment