Riptide.Mutation.layers
You're seeing just the function
layers
, go back to Riptide.Mutation module for more information.
Specs
Returns a mapping with an entry for every layer of the mutation. The keys represent a path and the value represents the full mutation that is being merged in at that path.
Examples
iex> Riptide.Mutation.put_merge(["a", "b"], true) |> Riptide.Mutation.layers
%{
[] => %Riptide.Mutation{
delete: %{},
merge: %{
"a" => %{
"b" => true
}
}
},
["a"] => %Riptide.Mutation{
delete: %{},
merge: %{
"b" => true
}
}
}