inquery-monitor

1.0.31 • Public • Published

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

Package Sidebar

Install

npm i inquery-monitor

Weekly Downloads

6

Version

1.0.31

License

ISC

Unpacked Size

4.8 kB

Total Files

5

Last publish

Collaborators

  • tangandrew95