DefinitelyTyped/types/graphql-type-json/graphql-type-json-tests.ts
Brendan M e18af54e46 Add GraphQLJSONObject type to graphql-type-json definition (#35190)
* update graphql-type-json definitions

* update tests
2019-05-13 09:49:13 -07:00

27 lines
566 B
TypeScript

import { GraphQLObjectType, GraphQLInputObjectType } from "graphql";
import GraphQLJSON, { GraphQLJSONObject } from "graphql-type-json";
const TestType = new GraphQLObjectType({
name: "TestType",
fields: {
testValue: {
type: GraphQLJSON
},
testObject: {
type: GraphQLJSONObject
}
}
});
const TestInputType = new GraphQLInputObjectType({
name: "TestInputType",
fields: {
testValue: {
type: GraphQLJSON
},
testObject: {
type: GraphQLJSONObject
}
}
});