Named Bindings

Learn how to work with named bindings.

Work with named bindings

Keeping track of the query bindings isn’t too difficult with a small query like those we’ve used previously. The query composition spanned a small section of code and we only had two bindings. With a more complex query spread over a wider area, though, it could be tough to remember which binding needs to go where.

To help alleviate this problem, Ecto allows us to assign specific ...