inquery-monitor-local

1.0.3 • Public • Published

Inquery

Test your GraphQL endpoint resolvers in a sandboxed environment.

Note: This package is for production environment GraphQL monitoring. Currently the supported GraphQL implementations are Apollo GraphQL & GraphQL Yoga.

Install inquery-monitor-local

npm install inquery-monitor-local

Require inquery-monitor-local & destructure enableMonitoring from the module in your server.js file.

const { enableMonitoring } = require('inquery-monitor-local')

Pass your resolvers into enableMonitoring as the first param

const updatedResolvers = enableMonitoring(oldResolvers)

Start your GraphQL server with the updated resolvers.

const server = new ApolloServer ({ typeDefs, updatedResolvers })
server.listen( ).then( { url } ) ⇒ { console.log(`Server is listening at { url }` )}

Enter in terminal command to launch dashboard

inquery monitor

Readme

Keywords

none

Package Sidebar

Install

npm i inquery-monitor-local

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

13.9 MB

Total Files

36

Last publish

Collaborators

  • tangandrew95