Socket
Socket
Sign inDemoInstall

@parameter1/omeda-graphql-client-express

Package Overview
Dependencies
1
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
2
Created

Readme

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc