graphql middleware for nanoexpress
npm i @nanoexpress/middleware-graphql
# or
yarn add @nanoexpress/middleware-graphql
- This middleware provides only HTTP bindings
- For subscription support, please use graphql-ws
See the examples directory
import graphql from '@nanoexpress/middleware-graphql';
app.post('/graphql', graphql(GraphQLSchema));
const graphql = require('@nanoexpress/middleware-graphql/cjs');
app.post('/graphql', graphql(GraphQLSchema));
Please refer to here or here for more information
MIT