Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb unwind

{
  $unwind:
    {
      path: <field path>,
      includeArrayIndex: <string>,
      // to include documents whose sizes field is null, missing, or an empty array.
      preserveNullAndEmptyArrays: <boolean>
    }
}
Source by docs.mongodb.com #
 
PREVIOUS NEXT
Tagged: #mongodb #unwind
ADD COMMENT
Topic
Name
8+6 =