• Version 0.18.2
  • Published
  • 143 kB
  • 33 dependencies
  • MIT license


npm i graphql-code-generator
yarn add graphql-code-generator
pnpm add graphql-code-generator


<p align="center"> <img src="" /> </p>



function createConfigFromOldCli

createConfigFromOldCli: (options: CLIOptions) => Types.Config;

    function executeCodegen

    executeCodegen: (config: Types.Config) => Promise<FileOutput[]>;

      function generate

      generate: (
      config: Types.Config,
      saveToFile?: boolean
      ) => Promise<FileOutput[] | any>;


        interface CLIOptions

        interface CLIOptions {}

          property args

          args?: string[];

            property clientSchema

            clientSchema?: string;

              property config

              config?: string;

                property exitOnError

                exitOnError?: boolean;

                  property header

                  header?: string[];

                    property mergeSchema

                    mergeSchema?: string;

                      property out

                      out?: string;

                        property overwrite

                        overwrite?: boolean;

                          property project

                          project?: string;

                            property require

                            require?: string[];

                              property schema

                              schema?: string;

                                property silent

                                silent?: boolean;

                                  property skipDocuments

                                  skipDocuments?: any;

                                    property skipSchema

                                    skipSchema?: any;

                                      property template

                                      template?: string;

                                        property templateConfig

                                        templateConfig?: {
                                        [key: string]: any;

                                          property watch

                                          watch?: boolean;


                                            namespace indent-string

                                            module 'indent-string' {}

                                              namespace is-valid-path

                                              module 'is-valid-path' {}

                                                function isValidPath

                                                isValidPath: (path: string) => boolean;

                                                  namespace json-to-pretty-yaml

                                                  module 'json-to-pretty-yaml' {}

                                                    namespace listr-update-renderer

                                                    module 'listr-update-renderer' {}

                                                      Package Files (5)

                                                      Dependencies (33)

                                                      Dev Dependencies (13)

                                                      Peer Dependencies (1)


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

                                                      You may also use to create a custom badge linking to

                                                      • Markdown
                                                      • HTML
                                                        <a href=""><img src="" alt=""></a>