Subdocuments
Q3 registers a global mongoose plugin for easier subdocument management.
Last updated
Q3 registers a global mongoose plugin for easier subdocument management.
Last updated
Method
Description
Parameters
getSubDocument
Lookup a single sub-document by its ID
field (String), id (String)
pushSubDocument
Add to a new or existing embedded array
field (String), document (Object)
removeSubDocument
Remove a single or set of sub-documents
field (String), id (String or Array)
updateSubDocument
Update part of a sub-document record
field (String), id (String), arguments (Object)