当我尝试创建标量类型时,GraphQLObjectType不是构造函数错误
const anobject = new GraphQLObjectType({
name: "anobject",
fields: () => ({
name: {
type: GraphQLString,
description: 'The name of the person.',
},
_id :{
type: GraphQLString,
description: 'The id of the person.',
}
})
});