Search⌘ K
AI Features

Get Values Back

Explore how the returning option in Ecto's Repo module allows you to retrieve specific field values, such as auto-assigned IDs, after database insert or update operations. Learn how Ecto returns results and how to work with returned maps to handle data efficiently in your Elixir applications.

Return value of queries

In each of the examples we’ve seen so far, Ecto returns ...