Unable to update subdoc in map field

Hi @selvarajc
Is propName “managers.Food.address” in your example? If so, then that should work.
If “managers” or “managers.Food” does not already exist in the document then you can use the createPath() setting to make them be created. E.g.

		collection.mutateIn(docId, Arrays.asList(
				MutateInSpec.upsert("managers.Food.address", theContent).createPath()));
1 Like