I am trying to update a nested array value by pointing to the precise
nested array path by identifying the array index for each subdocument.
This is where I am having trouble. I have accurately identified the
indexes for the path I need to update the subdocument but the mongodb
function does not seem to like cf variables in the "field". It attempts to
use the variable name instead of evaluating it.
Here's an example:
{$set: {"chapters.#dbVars.targetArray*Chapter*
Pos#.sections.#dbVars.targetArray*Section*Pos#.chSort": newSortNum } }
According to many, once you begin to have deeper nested arrays, you have to
define the precise array path with indexes. See one example below...
http://stackoverflow.com/questions/18173482/mongodb-update-deeply-nested-subdocument
Thanks
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.