Nachos Pillage Milwaukee

    @envelop/filter-operation-type
    TypeScript icon, indicating that this package has built-in type declarations

    3.4.0 • Public • Published

    @envelop/filter-operation-type

    This plugins injects a validation rule into the validation phase that only allows the specified operation types (e.g. subscription, query or mutation).

    Getting Started

    yarn add @envelop/filter-operation-type
    

    Usage Example

    import { envelop } from '@envelop/core';
    import { useFilterAllowedOperations } from '@envelop/filter-operation-type';
    const getEnveloped = envelop({
      // only allow execution of subscription operations
      plugins: [useFilterAllowedOperations(['subscription'])],
    });

    Keywords

    none

    Install

    npm i @envelop/filter-operation-type

    DownloadsWeekly Downloads

    6,318

    Version

    3.4.0

    License

    MIT

    Unpacked Size

    4.58 kB

    Total Files

    9

    Last publish

    Collaborators

    • dotansimha