# @vantreeseba/graphql-mocks-codegen > GraphQL Code Generator plugin that emits a SchemaTypeMap for typing @vantreeseba/graphql-mocks pools. Agent-facing docs for @vantreeseba/graphql-mocks-codegen: one task or concept per page, then what each package.json "exports" entry exports. Generated from _agents/docs/ and the doc comments in src/ by @cubicecho/agent-docs; edit those, not this file. Peer dependencies: `@graphql-codegen/plugin-helpers` >=5, `graphql` >=16. ## Docs - [Install and configure](_agents/docs/01-install.md): Generate a `SchemaTypeMap` with GraphQL Code Generator, so `buildMocks` from `@vantreeseba/graphql-mocks` returns typed pools without a cast. - [Common mistakes](_agents/docs/common-mistakes.md): Mistakes that leave the generated map failing to compile or missing a type, each with its fix. ## Exports: @vantreeseba/graphql-mocks-codegen A GraphQL Code Generator plugin that emits a `SchemaTypeMap` — a `{ TypeName: GeneratedType }` map of every object type in your schema — so you can hand it to `@vantreeseba/graphql-mocks`'s `buildMocks` and get typed mock pools back without a cast: - `GraphqlMocksPluginConfig` (type): Configuration for the plugin. - `plugin` - `validate`