Joining and grouping on array fields in MongoDB may require using $unwind before applying $group or $lookup - DEV Community
Working with nested data in MongoDB simplifies mapping between application objects and database... Tagged with mongodb, document, database, postgres.