maxDepthPlugin
Package name | Weekly Downloads | Version | License | Updated |
---|---|---|---|---|
@escape.tech/graphql-armor-max-depth (opens in a new tab) | Jun 27th, 2023 |
@escape.tech/graphql-armor-max-depth
Limit the depth of a GraphQL document.
It is used to prevent too large queries that could lead to overfetching or DOS attack.
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-depth
# yarn
yarn add @escape.tech/graphql-armor-max-depth
Documentation
https://escape.tech/graphql-armor/docs/plugins/max-depth (opens in a new tab)