Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphile-contrib/pgdbi

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphile-contrib/pgdbi

## Installation

  • 1.0.9-alpha.111
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@graphile-contrib/pgdbi

Installation

yarn add @graphile-contrib/pgdbi

Usage

Currently recommended for development only; to disable in production, do not load this plugin.

This is a PostGraphile Server Plugin so you can follow the standard server plugin instructions, namely:

For the CLI, use --plugins to load the plugin (and remember this flag must come at the very start!)

postgraphile --plugins @graphile-contrib/pgdbis -c my_db

For PostGraphile as a library/middleware, you must use the plugin hook functionality:

const pgdbi = require('@graphile-contrib/pgdbi');
const { postgraphile, makePluginHook } = require('postgraphile');

const pluginHook = makePluginHook([
  pgdbi,
  /* other server plugins can be added here */
]);

app.use(
  postgraphile(connectionString, schemas, {
    pluginHook,
  }),
);

You can access pgdbi at the /pgdbi sub path, e.g. http://localhost:5000/pgdbi.

FAQs

Package last updated on 01 Jun 2020

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc