#100DaysOfMERN - Day 50
✏ MongoDB Aggregation: $project stage
This stage takes a collection of documents, and projects each document on a (usually) smaller document. You can include/exclude, rename and restructure fields in this stage. Typically, this stage comes after $mat...
blog.jsdisco.dev4 min read
Pratik Zinjurde
aspiring web developer
hi can you tell me why this code is not working let user=await User.find({ _id: { $ne: userid } }, {friendsList : {$ne:userid}}).limit(3) im getting this error in postman { "ok": 0, "code": 2, "codeName": "BadValue", "name": "MongoError" }