# inquery-monitor

> Monitor your GraphQL endpoint.

Latest version **1.0.31** (published 2019-09-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install inquery-monitor
pnpm add inquery-monitor
yarn add inquery-monitor
bun add inquery-monitor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.31 |
| Published | 2019-09-22 |
| First published | 2019-09-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrew Tang, Justin Fung, Billy Lee, Soroush Alimardani |
| Maintainers | tangandrew95 |
| Keywords | GraphQL, resolvers, analytics, monitor, inquery, apollo, graphql-express, server |

## Links

- npm: https://www.npmjs.com/package/inquery-monitor
- npm.io page: https://npm.io/package/inquery-monitor

## Dependencies (5)

- [ws](https://npm.io/package/ws.md) ^7.1.2
- [uniqid](https://npm.io/package/uniqid.md) ^5.0.3
- [sleep-ms](https://npm.io/package/sleep-ms.md) ^2.0.1
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [performance-now](https://npm.io/package/performance-now.md) ^2.1.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.31 (latest) — 2019-09-22
- 1.0.3 — 2019-09-16
- 1.0.2 — 2019-09-14
- 1.0.1 — 2019-09-12
- 1.0.0 — 2019-09-12

## README

# 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.**
```javascript
const { enableMonitoring } = require('inquery-monitor')
```

**Pass your resolvers into enableMonitoring as the first param, and your API AccessID as the second.**
```javascript
const updatedResolvers = enableMonitoring(oldResolvers, 'yourAPIAcessID')
```

**Start your GraphQL server with the updated resolvers.**
```javascript
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](https://i.imgur.com/DEyvcAh.png)

---
_Source: https://npm.io/package/inquery-monitor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
