On this page

useFragmentArguments

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

Weekly downloads
2k
Version
10.0.1
License
MIT
Updated
Nov 12, 2026

utilities

@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()
  ]
})