UNPKG

body-parser-graphql

Version:

GraphQL server middleware to support application/graphql requests

13 lines (12 loc) 437 B
/// <reference types="express" /> import { RequestHandler } from 'express'; export interface BodyParserJSONOptions { limit?: number | string; inflate?: boolean; reviver?: any; strict?: boolean; type?: string; verify?: any; } export declare const bodyParserGraphQL: (options?: BodyParserJSONOptions) => RequestHandler; export declare const graphql: (options?: BodyParserJSONOptions | undefined) => RequestHandler;