← Graph

Graph resolvers compute minimal API calls automatically

takeaway 2 connections

When every resolver declares only its input and output attributes, Pathom treats the union of resolvers as a graph and solves API queries as a classic graph-traversal / optimization problem (ideas from 1960s graph theory): batch when the target API supports it, parallelize independent branches, fall back to alternative paths when one resolver errors (e.g. a 403 on file-details triggers an alternative resolver returning only title and channel-id). No custom pipeline code needs to be written per query.

type
insight
takeaway Graph resolvers compute minimal API calls automatically
about
Resolver concept
About Pathom's resolver-graph execution model.
takeaway Graph resolvers compute minimal API calls automatically
from_talk
Shown in the live demo's tracer and the 403 fallback example.

Provenance

Read by
4 extractions