18 plugins for your data layer, auth, tracing, and common schema patterns. Each one adds methods and options to the builder, with the same type inference as the core API.
See Using plugins for installation and builder configuration.
The Zod plugin documents the older Zod-specific API. For new validation fields, start with the Validation plugin.
Plug Pothos into the database / data layer you already use.
Build Prisma queries from GraphQL selections
@pothos/plugin-prismaBuild queries from GraphQL selections using Drizzle’s relational query builder
@pothos/plugin-drizzleBatch and cache data loading for types and fields
@pothos/plugin-dataloaderAdd existing GraphQL types to your schema
@pothos/plugin-add-graphqlPlugins for common schema patterns: connections, federation, sub-graphs, and directives.
Define Relay nodes, global IDs, and paginated connections
@pothos/plugin-relayBuild subgraphs for Apollo Federation
@pothos/plugin-federationBuild separate schemas from subsets of your types and fields
@pothos/plugin-sub-graphAttach directive metadata to your schema
@pothos/plugin-directivesInfer backing types from fields that expose data properties
@pothos/plugin-simple-objectsDefine fields with inline input objects
@pothos/plugin-with-inputAuthorization checks, typed errors, validation, and complexity limits.
Authorize access to fields and types using request data
@pothos/plugin-scope-authExpose expected resolver errors as typed GraphQL results
@pothos/plugin-errorsValidate inputs with Standard Schema libraries such as Zod, Valibot, and ArkType
@pothos/plugin-validationDefine field costs and limit query complexity
@pothos/plugin-complexitySubscriptions, and execution plans in place of resolvers.
Mocking, tracing, and tools that make Pothos schemas easier to work on.