DefinitelyTyped/types/graphql-type-json/graphql-type-json-tests.ts
2017-07-25 10:34:23 -07:00

21 lines
422 B
TypeScript

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