• Version 0.20.2
  • Published
  • 55.2 kB
  • 13 dependencies
  • MIT license


npm i apollo-codegen
yarn add apollo-codegen
pnpm add apollo-codegen


Generate API code or type annotations based on a GraphQL schema and query documents



function downloadSchema

downloadSchema: (
url: string,
outputPath: string,
additionalHeaders: { [name: string]: string },
insecure: boolean,
method: string
) => Promise<void>;

    function generate

    generate: (
    inputPaths: string[],
    schemaPath: string,
    outputPath: string,
    only: string,
    target: TargetType,
    tagName: string,
    projectName: string,
    options: any
    ) => void;

      function introspectSchema

      introspectSchema: (schemaPath: string, outputPath: string) => Promise<void>;

        function printSchema

        printSchema: (
        schemaPath: string,
        outputPath: string,
        options?: PrinterOptions
        ) => Promise<void>;

          Package Files (5)

          Dependencies (13)

          Dev Dependencies (11)

          Peer Dependencies (0)

          No peer dependencies.


          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/apollo-codegen.

          • Markdown
          • HTML
            <a href="https://www.jsdocs.io/package/apollo-codegen"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>