Property DisambiguatedPaths
DisambiguatedPaths
Gets the disambiguated paths if present.
Property Value
- Bson
Document The disambiguated paths.
Remarks
A document containing a map that associates an update path to an array containing the path components used in the update document. This data
can be used in combination with the other fields in an Update{ "a.b": "c" }
) or
a document contains a numeric literal string key (i.e. { "a": { "0": "a" } }
). Note that in this scenario, the numeric key can't be the top
level key because { "0": "a" }
is not ambiguous - update paths would simply be '0'
which is unambiguous because BSON documents cannot have
arrays at the top level. Each entry in the document maps an update path to an array which contains the actual path used when the document
was updated. For example, given a document with the following shape { "a": { "0": 0 } }
and an update of { $inc: { "a.0": 1 } }
,
Disambiguated
{
"a.0": ["a", "0"]
}
In each array, all elements will be returned as strings with the exception of array indices, which will be returned as 32-bit integers.
Added in MongoDB version 6.1.0.