@graphql-codegen/add

  • Version 5.0.3
  • Published
  • 4.64 kB
  • 2 dependencies
  • MIT license

Install

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

Overview

GraphQL Code Generator plugin for adding custom content to your output file

Index

Variables

variable _default

const _default: { plugin: PluginFunction<AddPluginConfig> };

    variable plugin

    const plugin: PluginFunction<AddPluginConfig>;

      variable VALID_PLACEMENTS

      const VALID_PLACEMENTS: ('prepend' | 'content' | 'append')[];

        Interfaces

        interface AddPluginConfig

        interface AddPluginConfig {}

          property content

          content: string | string[];
          • The actual content you wish to add, either a string or array of strings. You can also specify a path to a local file and the content if it will be loaded by codegen.

          property placement

          placement?: 'prepend' | 'content' | 'append';
          • prepend Allow you to choose where to add the content.

          Package Files (2)

          Dependencies (2)

          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/add.

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