You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@parameter1/omeda-graphql-client-express

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parameter1/omeda-graphql-client-express

Express middleware for creating and using the Omeda GraphQL client

0.5.4
Source
npmnpm
Version published
Weekly downloads
411
32.58%
Maintainers
2
Weekly downloads
 
Created
Source

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',
}));

FAQs

Package last updated on 14 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts