Ecto.Multi.put

You're seeing just the function put, go back to Ecto.Multi module for more information.

Specs

put(t(), name(), any()) :: t()

Adds a value to the changes so far under the given name.

Example

Ecto.Multi.new()
|> Ecto.Multi.put(:params, params)
|> Ecto.Multi.insert(:user, fn changes -> User.changeset(changes.params) end)
|> Ecto.Multi.insert(:person, fn changes -> Person.changeset(changes.user, changes.params) end)
|> MyApp.Repo.transaction()