Never Post Memes

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

    1.6.1 • Public • Published

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

    This plugin will limit the number of aliases in a GraphQL query.

    Getting Started

    # npm
    npm install @escape.tech/graphql-armor-max-aliases
    
    # yarn
    yarn add @escape.tech/graphql-armor-max-aliases

    Usage example

    With @graphql/graphql-js

    import { maxAliasesRule } from '@escape.tech/graphql-armor-max-aliases';

    With @envelop/core from @the-guild-org

    import { envelop } from '@envelop/core';
    import { maxAliasesPlugin } from '@escape.tech/graphql-armor-max-aliases';
    
    const getEnveloped = envelop({
      plugins: [
        // ... other plugins ...
        maxAliasesPlugin({
            n: 15, // Number of aliases allowed | Default: 15
        }),
      ]
    })

    Keywords

    none

    Install

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

    DownloadsWeekly Downloads

    15,891

    Version

    1.6.1

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • swan_escape
    • icarossio
    • glimow
    • steffthestunt