apollo-codegen

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

Install

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

Overview

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

Index

Functions

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.

          Badge

          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
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/apollo-codegen)
          • 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>