@graphql-codegen/core

  • Version 2.5.1
  • Published
  • 30.4 kB
  • 4 dependencies
  • MIT license

Install

npm i @graphql-codegen/core
yarn add @graphql-codegen/core
pnpm add @graphql-codegen/core

Overview

<p align="center"> <img src="https://github.com/dotansimha/graphql-code-generator/blob/master/logo.png?raw=true" /> </p>

Index

Functions

function codegen

codegen: (options: Types.GenerateOptions) => Promise<string>;

    function executePlugin

    executePlugin: (
    options: ExecutePluginOptions,
    plugin: CodegenPlugin
    ) => Promise<Types.PluginOutput>;

      Interfaces

      interface ExecutePluginOptions

      interface ExecutePluginOptions {}

        property allPlugins

        allPlugins: Types.ConfiguredPlugin[];

          property config

          config: Types.PluginConfig;

            property documents

            documents: Types.DocumentFile[];

              property name

              name: string;

                property outputFilename

                outputFilename: string;

                  property parentConfig

                  parentConfig: Types.PluginConfig;

                    property pluginContext

                    pluginContext?: {
                    [key: string]: any;
                    };

                      property profiler

                      profiler?: Profiler;

                        property schema

                        schema: DocumentNode;

                          property schemaAst

                          schemaAst?: GraphQLSchema;

                            property skipDocumentsValidation

                            skipDocumentsValidation?: Types.SkipDocumentsValidationOptions;

                              Package Files (3)

                              Dependencies (4)

                              Dev Dependencies (0)

                              No dev dependencies.

                              Peer Dependencies (1)

                              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/@graphql-codegen/core.

                              • Markdown
                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@graphql-codegen/core)
                              • HTML
                                <a href="https://www.jsdocs.io/package/@graphql-codegen/core"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>