@graphql-codegen/typescript-react-apollo

  • Version 4.1.0
  • Published
  • 68.3 kB
  • 5 dependencies
  • MIT license

Install

npm i @graphql-codegen/typescript-react-apollo
yarn add @graphql-codegen/typescript-react-apollo
pnpm add @graphql-codegen/typescript-react-apollo

Overview

GraphQL Code Generator plugin for generating a ready-to-use React Components/HOC/Hooks based on GraphQL operations

Index

Variables

variable plugin

const plugin: PluginFunction<ReactApolloRawPluginConfig, Types.ComplexPluginOutput>;

    variable validate

    const validate: PluginValidateFn<any>;

      Classes

      class ReactApolloVisitor

      class ReactApolloVisitor extends ClientSideBaseVisitor<
      ReactApolloRawPluginConfig,
      ReactApolloPluginConfig
      > {}

        constructor

        constructor(
        schema: GraphQLSchema,
        fragments: LoadedFragment[],
        rawConfig: ReactApolloRawPluginConfig,
        documents: Types.DocumentFile[]
        );

          property rawConfig

          protected rawConfig: ReactApolloRawPluginConfig;

            method buildOperation

            protected buildOperation: (
            node: OperationDefinitionNode,
            documentVariableName: string,
            operationType: string,
            operationResultType: string,
            operationVariablesTypes: string,
            hasRequiredVariables: boolean
            ) => string;

              method getImports

              getImports: () => string[];

                Package Files (2)

                Dependencies (5)

                Dev Dependencies (0)

                No dev dependencies.

                Peer Dependencies (2)

                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/typescript-react-apollo.

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