我正在使用GraphQL。
现在,用户数据库中有一个字段。它是一个对象,但可以是任何对象,并且可以具有任何级别。
是否有类似GraphQLObject
或GraphQLAny
类型的东西?谢谢
const SomeType = new GraphQLObjectType({
name: 'PrintSpec',
fields: () => ({
name: { type: GraphQLString },
count: { type: GraphQLFloat },
userData: { type: GraphQLWhatType }, // <- here how can I define this type?
})
});