Skip to content

Instantly share code, notes, and snippets.

@rohmanhm
Last active December 12, 2016 22:40
Show Gist options
  • Save rohmanhm/ccb20f4b6f7566747b83f81749c60d71 to your computer and use it in GitHub Desktop.
Save rohmanhm/ccb20f4b6f7566747b83f81749c60d71 to your computer and use it in GitHub Desktop.
Test GraphQLInputObjectType
import { GraphQLInputObjectType, GraphQLString, GraphQLID } from 'graphql';
const Input = new GraphQLInputObjectType({
name: 'input',
description: 'Some input',
fields: {
id: {
type: GraphQLID
},
name: {
type: GraphQLString
}
}
});
console.log(Input.name, Input.description, Input.getFields());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment