envelop-no-batched-queries
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

No Batched Queries - Envelop Plugin

This package is an envelop plugin version of graphql-no-batched-queries validation directive.

Install

npm i envelop-no-batched-queries

Usage

import { envelop } from '@envelop/core'
import { useNoBatchedQueries } from 'envelop-no-batched-queries'

// allow 2 queries or mutations per request (default is 1)
const batchValidation = useNoBatchedQueries({ allow: 2 })

const getEnveloped = envelop({
  plugins: [batchValidation]
})

Package Sidebar

Install

npm i envelop-no-batched-queries

Weekly Downloads

0

Version

3.0.2

License

MIT

Unpacked Size

11.2 kB

Total Files

10

Last publish

Collaborators

  • ivandotv