Graphql returns null id for mongoose aggregation query
问题 Graphql returns null id for mongoose aggregation query, but works ok other mongoose queries. Here is my mongoose schema: const { Schema } = mongoose; const ObjectId = Schema.Types.ObjectId; const productSchema = new Schema({ _id: ObjectId, price: Number }) const Product = mongoose.model('Product', productSchema, 'Product') Here is my Graphql schema: type Product { id: ID price: String } Graphql normal query: context.Product.findOne() Result with console.log: [ { price: 10, _id: