In the last lesson we took values out of one card. Now we need the reverse: find the cards that say something. The barista asks: "Which milk drinks can be made with oat milk?" The clerk does not read every card from top to bottom. He lays a stencil over it: "has the tag milk, has the option oat milk", and checks whether everything on the stencil shows through.
In this lesson
- Containment: @>
- Key checks: ?, ?| and ?&
- SQL/JSON path
- A GIN index for documents
- Common mistake
- Key points