Writing Queries with Schemas

Programming Ecto — Pragmatic Programmers (30 / 122)

👈 Creating Schemas | TOC | Inserting and Deleting with Schemas 👉

When we looked at queries in the last chapter, we deliberately chose to write them without schemas. This is still a good choice in some circumstances, but schemas provide some helpful shortcuts and we promised that we’d revisit them later. Now’s the time. In this section, we’ll start writing queries that work with schemas, and we’ll also consider when it’s best not to.

--

--

--

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.

Recommended from Medium

Between the lines — Rate limiting in Spring Cloud Gateway

Gitcoin Product Update

And the Oscar for the best git workflow goes to…

What Problem Did We Need to Solve?

hacker rank c programming solutions

Simple servers with Ruby

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
The Pragmatic Programmers

The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.