UNPKG

graphql-yoga

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