Last active
December 12, 2016 22:40
-
-
Save rohmanhm/ccb20f4b6f7566747b83f81749c60d71 to your computer and use it in GitHub Desktop.
Test GraphQLInputObjectType
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
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