apollo

  • Version 2.33.4
  • Published
  • 288 kB
  • 37 dependencies
  • MIT license

Install

npm i apollo
yarn add apollo
pnpm add apollo

Overview

Command line tool for Apollo GraphQL

Index

Functions

function gitInfo

gitInfo: (log: any) => Promise<GitContext | undefined>;

    function sanitizeGitRemote

    sanitizeGitRemote: (remote?: string | undefined) => any;

      Classes

      class ClientCommand

      abstract class ClientCommand extends ProjectCommand {}

        constructor

        constructor(argv: any, config: any);

          property flags

          static flags: {
          clientReferenceId: any;
          clientName: any;
          clientVersion: any;
          tag: any;
          variant: any;
          graph: any;
          queries: any;
          includes: any;
          excludes: any;
          tagName: any;
          config: any;
          header: any;
          endpoint: any;
          key: any;
          engine: any;
          };

            property project

            project: any;

              class ProjectCommand

              abstract class ProjectCommand extends Command {}

                property configMap

                protected configMap?: (flags: any) => any;

                  property DEPRECATION_MSG

                  static DEPRECATION_MSG: string;

                    property flags

                    static flags: { config: any; header: any; endpoint: any; key: any; engine: any };

                      property project

                      project: any;

                        property tasks

                        tasks: any[];

                          property type

                          protected type: 'service' | 'client';

                            method catch

                            catch: (err: any) => Promise<void>;

                              method createConfig

                              protected createConfig: (flags: Flags) => Promise<ApolloConfig | undefined>;

                                method createService

                                protected createService: (config: any, flags: Flags) => void;

                                  method finally

                                  finally: (err: any) => Promise<void>;

                                    method init

                                    init: () => Promise<void>;

                                      method printDeprecationWarning

                                      protected printDeprecationWarning: () => void;

                                        method runTasks

                                        runTasks: <Result>(
                                        generateTasks: (context: ProjectContext) => ListrTask[],
                                        options?: any
                                        ) => Promise<Result>;

                                          Interfaces

                                          interface ClientCommandFlags

                                          interface ClientCommandFlags extends Flags {}

                                            property clientName

                                            clientName?: string;

                                              property clientReferenceId

                                              clientReferenceId?: string;

                                                property clientVersion

                                                clientVersion?: string;

                                                  property excludes

                                                  excludes?: string;

                                                    property includes

                                                    includes?: string;

                                                      property queries

                                                      queries?: string;

                                                        property tagName

                                                        tagName?: string;

                                                          interface Commit

                                                          interface Commit {}

                                                            property authorEmail

                                                            authorEmail: string | null;

                                                              property authorName

                                                              authorName: string | null;

                                                                interface Flags

                                                                interface Flags {}

                                                                  property config

                                                                  config?: string;

                                                                    property endpoint

                                                                    endpoint?: string;

                                                                      property engine

                                                                      engine?: string;

                                                                        property graph

                                                                        graph?: string;

                                                                          property header

                                                                          header?: string[];

                                                                            property key

                                                                            key?: string;

                                                                              property localSchemaFile

                                                                              localSchemaFile?: string;

                                                                                property skipSSLValidation

                                                                                skipSSLValidation?: boolean;

                                                                                  property tag

                                                                                  tag?: string;

                                                                                    property variant

                                                                                    variant?: string;

                                                                                      interface GitContext

                                                                                      interface GitContext {}

                                                                                        property branch

                                                                                        branch?: string;

                                                                                          property commit

                                                                                          commit?: string;

                                                                                            property committer

                                                                                            committer?: string;

                                                                                              property message

                                                                                              message?: string;

                                                                                                property remoteUrl

                                                                                                remoteUrl?: string;

                                                                                                  interface ProjectContext

                                                                                                  interface ProjectContext<Flags = any, Args = any> {}

                                                                                                    property args

                                                                                                    args: Args;

                                                                                                      property config

                                                                                                      config: ApolloConfig;

                                                                                                        property flags

                                                                                                        flags: Flags;

                                                                                                          property project

                                                                                                          project: GraphQLProject;

                                                                                                            Package Files (3)

                                                                                                            Dependencies (37)

                                                                                                            Dev Dependencies (1)

                                                                                                            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.

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