Riptide.Mutation.inflate
You're seeing just the function
inflate
, go back to Riptide.Mutation module for more information.
Specs
Accepts a list and mutation, and returns a new mutation with the given mutation nested at the given path.
Example
iex> Riptide.Mutation.inflate(
...> ["a", "b"],
...> %{
...> delete: %{},
...> merge: %{
...> "a" => 1
...> }
...> }
...> )
%Riptide.Mutation{
delete: %{
"a" => %{
"b" => %{}
}
},
merge: %{
"a" => %{
"b" => %{
"a" => 1
}
}
}
}