express-graphql-multimode
express-graphql-multimode
npm i express-graphql-multimode
express-graphql-multimode

express-graphql-multimode

Create a GraphQL HTTP server with Express.

by graphql

0.9.6 (see all)License:MITTypeScript:Built-In
npm i express-graphql-multimode
Readme

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);
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate