Type-safe by design · v4.0

Schemas that grow with your code.

Pothos is a plugin-based GraphQL schema builder for TypeScript. Zero runtime overhead, no codegen, end-to-end inference — at the scale of Airbnb, Netflix, and your weekend project.

Read the guide MIT · open source
schema/user.tsTypeScript
import SchemaBuilder from '@pothos/core';
// Pothos infers field shapes from the builder generic.
const builder = new SchemaBuilder<{ Context: Context }>();
builder.objectType('User', {
fields: (t) => ({
id: t.exposeID('id'),
name: t.exposeString('name'),
posts: t.field({ type: [Post], resolve: loadPosts }),
}),
});

Inference, all the way down.

Define a type once. Pothos walks your code and infers the shape of arguments, return types, and context across resolvers. No codegen step, no decorators, no any escape hatches.

0kbruntime overhead
16+first-party plugins
100%TS inference, no codegen
The plugin garden

One ecosystem. Every shape.

Browse all 12+ plugins →
Trusted in production byAirbnbNetflixLinearHashnodeLyftTinybird