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

6.0.0 • Public • Published

@envelop/fragment-arguments

This plugins replaces the default GraphQL parser with an extended version that supports setting arguments on fragments.

For reference, see: https://github.com/graphql/graphql-js/pull/3152

PLEASE DON'T USE THIS IN PRODUCTION!

Getting Started

yarn add @envelop/fragment-arguments

Usage Example

import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
import { envelop, useEngine } from '@envelop/core'
import { useFragmentArguments } from '@envelop/fragment-arguments'

const getEnveloped = envelop({
  plugins: [
    useEngine({ parse, validate, specifiedRules, execute, subscribe }),
    // ... other plugins ...
    useFragmentArguments()
  ]
})

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @envelop/fragment-arguments

    Weekly Downloads

    204

    Version

    6.0.0

    License

    MIT

    Unpacked Size

    16.9 kB

    Total Files

    16

    Last publish

    Collaborators

    • dotansimha