@nanoexpress/middleware-graphql
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

graphql

graphql middleware for nanoexpress

Installation

npm i @nanoexpress/middleware-graphql
# or
yarn add @nanoexpress/middleware-graphql

Caveats

  • This middleware provides only HTTP bindings
  • For subscription support, please use graphql-ws

Example

See the examples directory

Usage

ESM Module

import graphql from '@nanoexpress/middleware-graphql';

app.post('/graphql', graphql(GraphQLSchema));

CJS Module

const graphql = require('@nanoexpress/middleware-graphql/cjs');

app.post('/graphql', graphql(GraphQLSchema));

Options

Please refer to here or here for more information

License

MIT

Package Sidebar

Install

npm i @nanoexpress/middleware-graphql

Weekly Downloads

8

Version

1.1.3

License

MIT

Unpacked Size

13.5 kB

Total Files

10

Last publish

Collaborators

  • dalisoft