18 first-party plugins to wire Pothos into your data layer, your auth model, your tracing stack, and the schema patterns your spec calls for. Each one extends the builder with new methods and types that stay fully inferred and compose with everything else.
Plug Pothos into the database / data layer you already use.
Define types from your Prisma models, with relations resolved in a single query.
@pothos/plugin-prismaDefine types from your Drizzle schema, resolved through its relational query builder.
@pothos/plugin-drizzleBatch and cache loads with dataloaders declared on types and fields.
@pothos/plugin-dataloaderFold existing GraphQL types or SDL into your Pothos schema.
@pothos/plugin-add-graphqlBuilders for the schema patterns the spec calls for — connections, federation, sub-graphs, and friends.
Connections, Node interfaces, and global IDs following the Relay spec.
@pothos/plugin-relayBuild Apollo Federation 2 subgraphs from a Pothos schema.
@pothos/plugin-federationGenerate multiple subsets of one schema to share code between internal and external APIs.
@pothos/plugin-sub-graphType-safe GraphQL directives for fields, types, and arguments.
@pothos/plugin-directivesDefine plain object types without resolvers or manual type declarations.
@pothos/plugin-simple-objectsInline `input` objects defined right next to the field that uses them.
@pothos/plugin-with-inputAuthorization checks, typed errors, validation, and complexity limits — built in, type-safe.
Field- and type-level authorization checks with scope composition.
@pothos/plugin-scope-authStrongly-typed errors as union return types, with auto-resolved success types.
@pothos/plugin-errorsArgument validation via any StandardSchema v1 library — Zod, Valibot, ArkType.
@pothos/plugin-validationPer-field complexity scoring with query-level limits.
@pothos/plugin-complexitySubscriptions and execution-plan plugins for real-time and large-graph workloads.
Mocking, tracing, and tools that make Pothos schemas easier to work on.