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

2.3.0 • Public • Published

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

Limit the number of tokens 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-tokens

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

Documentation

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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    41,149

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    12.1 kB

    Total Files

    9

    Last publish

    Collaborators

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