You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `merge` function merges the source type into the target type using the supplied strategy to handle conflicts.
247
-
Currently only merging of maps is supported
246
+
The `merge_maps` function merges the source map into the target map using the supplied strategy to handle conflicts.
248
247
249
248
`target` is a `pdata.Map` type field. `source` is a `pdata.Map` type field. `strategy` is a string that must be one of `insert`, `update`, or `upsert`.
250
249
@@ -253,17 +252,17 @@ If strategy is:
253
252
-`update`: Update the entry in `target` with the value from `source` where the key does exist.
254
253
-`upsert`: Performs insert or update. Insert the value from `source` into `target` where the key does not already exist and update the entry in `target` with the value from `source` where the key does exist.
255
254
256
-
`merge` is a special case of the [`set` function](#set). If you need to completely override `target`, use `set` instead.
255
+
`merge_maps` is a special case of the [`set` function](#set). If you need to completely override `target`, use `set` instead.
// MergeMaps function merges the source map into the target map using the supplied strategy to handle conflicts.
33
+
// Strategy definitions:
34
+
//
35
+
// insert: Insert the value from `source` into `target` where the key does not already exist.
36
+
// update: Update the entry in `target` with the value from `source` where the key does exist
37
+
// upsert: Performs insert or update. Insert the value from `source` into `target` where the key does not already exist and update the entry in `target` with the value from `source` where the key does exist.
0 commit comments