Graphql returns null id for mongoose aggregation query, but works ok other mongoose queries.
Here is my mongoose schema:
const { Schema } = mongoose;
Just add both IDs if you don't want to change every single instance of it.
type Product { id: ID _id: ID price: String }