1.0.31 • Published 5 years ago

inquery-monitor v1.0.31

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

Inquery

Monitor your GraphQL endpoint.

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

Install inquery-monitor

npm install inquery-monitor

Request for AccessID/Key

Go to Inquery.io & request for an AccessID / AccessKey. This will be your login credentials.

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

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

Pass your resolvers into enableMonitoring as the first param, and your API AccessID as the second.

const updatedResolvers = enableMonitoring(oldResolvers, 'yourAPIAcessID')

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 }` )}) 

Login to inquery.io to view your GraphQL query analytics!

Image of Dashboard