advanced
Проектирование GraphQL API
Проектируйте GraphQL schemas, queries, mutations, subscriptions, resolvers, DataLoader batching, federation и complexity limits.
На интервью по GraphQL API — schema design, resolver performance, batching, federation и защита от expensive queries — а не замена REST по умолчанию.
Подтемы: schema и operations, resolvers с N+1 и DataLoader, federation и query complexity limits.
На интервью: schema для nested read, защита от N+1, depth/cost limits на gateway.
Типовые ошибки: resolver на каждое поле → DB, нет authorization на nested fields, public GraphQL без persisted operations и complexity rules.
Чеклист:
- Types и nullability осознанно.
- Batch per-request через DataLoader.
- Auth на field или object boundaries.
- Depth, cost и introspection в production.