Hi, I've solved that error, but can you help me with writing a code in the route I've posted in the problem, this is my schema: ratings: [ { user: { type: Schema.Types.ObjectId, ref: "users" }, ratingNumber: { type: Number } } ], and I want to sum al the ratingNumbers and divide by the number of the elements in the ratingNumber array.