New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postgraphile-callback-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgraphile-callback-plugin

You can pass callback functions to this plugin, which'll then be called when specific postgraphile hooks are triggered. Right now, it only works for postgraphile:http:handler and postgraphile:http:end. The ability to pass such callbacks are useful for log

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-58.62%
Maintainers
1
Weekly downloads
 
Created
Source

postgraphile-callback-plugin

You can pass callback functions to this plugin, which'll then be called when specific postgraphile hooks are triggered. The ability to pass such callbacks are useful for logging and many other things.

Right now, it only works for postgraphile:http:handler and postgraphile:http:end, which are called respectively when a GraphQL request is received and a result is just about to be sent back.

Use as:

const { postgraphile, makePluginHook } = require("postgraphile")
const { default: callbackPlugin } = require("postgraphile-callback-plugin")

const graphilePluginHook = makePluginHook([
  callbackPlugin
])

const graphileOpt = {
  pluginHook: graphilePluginHook,
  startCallbackFunction: myStartCallbackFunction,
  endCallbackFunction: myEndCallbackFunction}

postgraphile(pool, ["mySchema"], graphileOpt)

FAQs

Package last updated on 14 Jan 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

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