Plugins
Plugins extend Baeta at build time: they generate code, run external commands, transform files, and shape the output of yarn build. They are different from app plugins (authAppPlugin, complexityAppPlugin), which extend Baeta at runtime.
Directives
@baeta/plugin-directives ships a catalog of ready-made directives for the common cases: string/number/object validation and a few string transforms. Enable the plugin and use the directives directly in your .gql files — no extra wiring needed.
Federation
The federation plugin makes a Baeta module a valid Apollo Federation subgraph: it generates the federation spec directives, the Entity union, the entities/_service resolvers, and typed handler signatures.
Pagination
The pagination plugin generates Relay-style connection types (Connection, Edge, PageInfo) for the types you list. You define the input shape; the plugin writes the SDL.
Prisma
Regenerates the Prisma client whenever schema.prisma changes, so you never have to remember to run prisma generate by hand.
Gitignore
Adds every generated file to your .gitignore automatically, so you don't have to track Baeta's output. (If you'd rather track generated files to review them in PRs, skip this plugin.)
Exec
The exec plugin runs a shell command or an arbitrary function during code generation. Use it for build steps that have to happen alongside Baeta's own generation — formatting hooks, asset bundling, anything you'd otherwise wire as a separate npm script.