Files
DefinitelyTyped/types/graphql-type-json/graphql-type-json-tests.ts
2017-05-12 19:38:19 +03:00

21 lines
420 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
}
}
});