I am using GraphQL.
Right now there is a field in database from user. It is an Object, but can be any Object and have any level.
Is there something like GraphQLObject
or GraphQLAny
type? Thanks
const SomeType = new GraphQLObjectType({
name: 'PrintSpec',
fields: () => ({
name: { type: GraphQLString },
count: { type: GraphQLFloat },
userData: { type: GraphQLWhatType }, // <- here how can I define this type?
})
});