@escape.tech/graphql-armor-max-depth
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

@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

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

    Package Sidebar

    Install

    npm i @escape.tech/graphql-armor-max-depth

    Weekly Downloads

    38,500

    Version

    2.2.0

    License

    MIT

    Unpacked Size

    15.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • gauben
    • bsodium
    • gby56
    • swan_escape
    • icarossio
    • steffthestunt