Invalid query result in mongoose while querying an array of embedded documents
17 views
Skip to first unread message
Ammar Lakho
unread,
Oct 2, 2022, 12:27:29 PM10/2/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mongoose Node.JS ODM
I am facing a discrepancy in query results between mongoose and the mongosh terminal in MongoDB Compass. The problem seems to be in the mongoose result. I have a user document with the following schema: