← Graph

Flat Query Structure

concept 2 connections

Design step that follows once identifiers are context-free: because a video always has exactly one channel, a YouTube video query can ask for :youtube.channel/title at the same level as :youtube.video/id, without a nested join. Joins are reserved for genuine 1:N relationships. Matches how UIs actually present the data and removes the API consumer's need to know about underlying relational schemas. In Pathom the resolver graph walks from any input identifier to any reachable attribute in the same query.

category
pattern
about
Flat Query Structure concept
Fourth step of the recipe: flatten 1:1 joins.
related_to
Flat Query Structure concept
Flat queries become possible once identifiers are context-free.

Provenance

Read by
14 extractions