Merges the supplied document onto this document. This will set on this document each of the fields in the supplied document; nested documents in the supplied document will be merged recursively.
Consider the following example. If this document contains:
{ "firstName" : "Jane", "lastName" : "Smith", "address" : { "street" : "Main Street", "city" : "Springfield" }, "phone" : "(800)555-1212" }
and another document 'other' contains:
{ "lastName" : "Doe", "address" : { "city" : "Memphis", "zip" : 12345 }, "phone" : { "home" : "(800)555-1212" } }
then merging 'other' onto the first will result in the first being modified to contain:
{ "firstName" : "Jane", "lastName" : "Doe", "address" : { "street" : "Main Street", "city" : "Memphis", "zip" : 12345 }, "phone" : { "home" : "(800)555-1212" } }
@param other the other document whose values should be merged