🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
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

1.0.0
latest
Source
npm
Version published
Weekly downloads
1.5K
-43.32%
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 20 Jun 2022

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