skip to Main Content

Mongodb – How to get a subarray of a document with mongoose

I have this document Schema: { "success": true, "data": { "_id": "624c0ac20f0df948f8bf8cf1", "collection_name": "pog7", "by": "soeww", "private": "$2a$10$U3dRJxUQLm9GvuS5g3qkF.fMVJCdxrLAarFiGQ900EarayWBvrZya", "fens": [ { "fen": "pog", "san": "d4", "_id": "624c0ac20f0df948f8bf8cf2" } ], "__v": 0 } } is there a function in mongoose to…

VIEW QUESTION
Back To Top
Search