Unwind

reactivemongo.api.commands.AggregationFramework.Unwind$
See theUnwind companion trait
object Unwind

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Unwind.type

Members list

Concise view

Value members

Concrete methods

def apply(field: String): Unwind

Turns a document with an array into multiple documents, one document for each element in the array. http://docs.mongodb.org/manual/reference/aggregation/unwind/#_S_unwind

Turns a document with an array into multiple documents, one document for each element in the array. http://docs.mongodb.org/manual/reference/aggregation/unwind/#_S_unwind

Attributes

field

the name of the array to unwind

def apply(path: String, includeArrayIndex: Option[String], preserveNullAndEmptyArrays: Option[Boolean]): Unwind

Turns a document with an array into multiple documents, one document for each element in the array.

Turns a document with an array into multiple documents, one document for each element in the array.

Attributes

includeArrayIndex

the name of a new field to hold the array index of the element

path

the field path to an array field (without the $ prefix)

Since:

MongoDB 3.2