UNPKG

graphql-yoga

Version:

<div align="center"><img src="https://raw.githubusercontent.com/graphql-hive/graphql-yoga/refs/heads/main/website/public/cover.png" width="720" /></div>

7 lines (6 loc) 385 B
import { DocumentNode } from 'graphql'; import { Maybe } from '@envelop/core'; import type { YogaInitialContext } from '../../types.cjs'; import type { Plugin } from '../types.cjs'; export declare function assertMutationViaGet(method: string, document: Maybe<DocumentNode>, operationName?: string): void; export declare function usePreventMutationViaGET(): Plugin<YogaInitialContext>;