1.0.0 • Published 2 years ago

@parameter1/omeda-graphql-client-express v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Omeda GraphQL Express Middleware

Express middleware for creating and using the Omeda GraphQL client

Installation

yarn add @parameter1/omeda-graphql-client-express

Usage

The middleware can be applied globally to Express, or on a per-route (or per-router) basis.

const express = require('express');
const omedaGraphQL = require('@parameter1/omeda-graphql-client-express');

const app = express();

// the client will be globally available on `req.$omeda` and `res.locals.$omeda`
app.use(omedaGraphQL({
  uri: 'https://graphql.omeda.parameter1.com',
  brandKey: 'yourbrandkey',
  appId: 'your app id',
  inputId: 'your input id',
}));
1.0.0

2 years ago

0.8.0

2 years ago

0.7.2

2 years ago

0.7.0

3 years ago

0.6.7

3 years ago

0.6.1

3 years ago

0.5.4

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.3

3 years ago

0.2.0

3 years ago