Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@escape.tech/graphql-armor-max-directives

Escape-Technologies482.1kMIT2.3.0TypeScript support: included

Limit the number of directives allowed in a GraphQL query.

readme

@escape.tech/graphql-armor-max-directives

Limit the number of directives in a GraphQL document.

It is used to prevent DOS attack, heap overflow or server overloading.

Installation

This plugin is bundled within GraphQL Armor, so you don't need to install it separately.

However, for a standalone usage, you can install it with:

# npm
npm install @escape.tech/graphql-armor-max-directives

# yarn
yarn add @escape.tech/graphql-armor-max-directives

Documentation

https://escape.tech/graphql-armor/docs/plugins/max-directives