express-graphql-multimode
TypeScript icon, indicating that this package has built-in type declarations

0.9.6 • Public • Published

GraphQL HTTP Server Middleware

The packacge is built using express-graphql. This package has an additional features that it can serve xml response.

Installation

npm install --save express-graphql-multimode

Simple Setup

Just mount express-graphql-multimode as a route handler:

const express = require('express');
const graphqlHTTP = require('express-graphql-multimode');
 
const app = express();
 
//make it to send xml response
const mode = {"name" : "xml"}
 
app.use(
  '/graphql',
  graphqlHTTP({
    mode : mode,
    schema: MyGraphQLSchema,
    graphiql: true,
  }),
);
 
app.listen(4000);

Package Sidebar

Install

npm i express-graphql-multimode

Weekly Downloads

1

Version

0.9.6

License

MIT

Unpacked Size

4.69 MB

Total Files

12

Last publish

Collaborators

  • nauroz