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 mongoo...@googlegroups.com
Hi all,
I've searched for a general solution but have not found yet. Can I set mongoose to minimize documents by parts? I would like to minimize an embed document (nested object) if there is no data in it(s children), but I do not want to minimize the whole document (e.g. minimize: false in level 1 and minimize: true in level >1).
Thank you!
Have a nice day,
Attila
Valeri Karpov
unread,
Feb 28, 2015, 11:30:46 AM2/28/15
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 mongoo...@googlegroups.com
Hmm you should be able to specify minimize: true in the child schema's toObject options. Does that not work?