Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
UnwindOptions |
UnwindOptions.includeArrayIndex(String arrayIndexFieldName)
Sets the field to be used to store the array index of the unwound item
|
UnwindOptions |
UnwindOptions.preserveNullAndEmptyArrays(Boolean preserveNullAndEmptyArrays)
Sets true if the unwind stage should include documents that have null values or empty arrays
|
Modifier and Type | Method and Description |
---|---|
static Bson |
Aggregates.unwind(String fieldName,
UnwindOptions unwindOptions)
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a
'$' sign. |
Copyright © 2016. All Rights Reserved.