Common mistakes
Symptom to cause, for the things that go wrong when adopting the graph.
| symptom | cause |
|---|---|
| Tenant isolation has nowhere to live | The node's row doesn't carry what the gate decides on. load cannot see the viewer. |
| A mutation changes data but nothing re-renders | The write wasn't recorded. mask or updated(Node, row) is what produces tags. |
| A new row doesn't appear in a list | updated was used where created was meant — only create/delete bust collection tags. |
| N+1 on a list | build({ request }) builds a fresh loader map per call instead of per request. |
| A page waits for its slowest field | The leaves were collected. Pass the individual promises down and let each subtree suspend. |
| A field's service fails at request time | It was not in GraphLive. FieldsRequirements should have caught it — check the satisfies still names the root's fields. |
build throws "missing `X`" | A node was declared but not listed in types. Add it — that is the whole manifest now. |
| A cached read throws about the clock | BucketedClock wasn't provided. A wall-clock read inside use cache is a prerender error. |
cacheLife() throws outside Next | Expected — the graph has no cache there and falls to the loader. |
Do's and don'ts
The rules that keep the graph honest. Each one exists because its opposite was built once and had to be taken out.
The API bridge
The tenant API's GraphQL schema is compiled from the same graph the pages read. One declaration, two surfaces, and a schema that cannot drift from the product.