mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
566 B
TypeScript
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
|
|
}
|
|
}
|
|
});
|