Skip to content

Conversation

sabiwara
Copy link
Contributor

@sabiwara sabiwara commented Jul 26, 2025

Since Ecto has many modules, I think this improves navigation through the docs.

Extract from "Constraints and Upserts"
Screenshot 2025-07-26 at 16 08 22

Extract from Ecto
Screenshot 2025-07-26 at 16 11 16

Comment on lines +268 to +271
Besides [`Repo.all/1`](`c:Ecto.Repo.all/2`) which returns all entries, repositories
also provide [`Repo.one/1`](`c:Ecto.Repo.one/2`) which returns one entry or `nil`,
[`Repo.one!/1`](`c:Ecto.Repo.one!/2`)) which returns one entry or raises,
[`Repo.get/2`](`c:Ecto.Repo.get/3`) which fetches entries for a particular ID and more.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: arities are off-by-one because there's no default on the behaviour level

@josevalim josevalim merged commit fbe5e73 into elixir-ecto:master Jul 26, 2025
6 of 7 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants