1.0.3 • Published 5 years ago

inquery-monitor-local v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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