@graphql-codegen/typescript-react-apollo
- Version 4.3.2
- Published
- 75.5 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
Classes
class ReactApolloVisitor
class ReactApolloVisitor extends ClientSideBaseVisitor< ReactApolloRawPluginConfig, ReactApolloPluginConfig> {}
constructor
constructor( schema: GraphQLSchema, fragments: LoadedFragment[], rawConfig: ReactApolloRawPluginConfig, documents: Types.DocumentFile[]);
property fragments
readonly fragments: string;
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 (1)
Badge
To add a badge like this oneto 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>
- Updated .
Package analyzed in 3150 ms. - Missing or incorrect documentation? Open an issue for this package.