Riptide.Mutation.put_merge
You're seeing just the function
put_merge
, go back to Riptide.Mutation module for more information.
Specs
Creates a new mutation and puts a value to be merged
Examples
iex> Riptide.Mutation.put_merge(["a", "b"], 1)
%Riptide.Mutation{delete: %{}, merge: %{"a" => %{"b" => 1}}}
Specs
Adds a merge value to the input mutation
Examples
iex> mutation = Riptide.Mutation.put_merge(["a", "b"], 1)
iex> Riptide.Mutation.put_merge(mutation, ["a", "c"], 2)
%Riptide.Mutation{delete: %{}, merge: %{"a" => %{"b" => 1, "c" => 2}}}