# netlify-onegraph-internal

> Internal tools for use by Netlify

Latest version **0.10.1** (published 2022-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install netlify-onegraph-internal
pnpm add netlify-onegraph-internal
yarn add netlify-onegraph-internal
bun add netlify-onegraph-internal
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.1 |
| Published | 2022-09-16 |
| First published | 2022-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 536.2 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | sgrove |
| Maintainers | sgrove, anmonteiro |

## Links

- npm: https://www.npmjs.com/package/netlify-onegraph-internal
- npm.io page: https://npm.io/package/netlify-onegraph-internal

## Dependencies (4)

- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [rusha](https://npm.io/package/rusha.md) ^0.8.14
- [graphql](https://npm.io/package/graphql.md) 16.5.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0

## Recent versions

- 0.10.1 (latest) — 2022-09-16
- 0.10.0 — 2022-08-19
- 0.9.0 — 2022-08-18
- 0.8.7 — 2022-08-15
- 0.8.6 — 2022-08-13
- 0.8.5 — 2022-08-12
- 0.8.4 — 2022-08-12
- 0.8.3 — 2022-08-11
- 0.8.2 — 2022-08-11
- 0.8.1 — 2022-08-10
- 0.8.0 — 2022-08-10
- 0.7.1 — 2022-08-10
- 0.7.0 — 2022-08-09
- 0.6.2 — 2022-08-09
- 0.6.1 — 2022-08-08
- … 85 more at https://npm.io/package/netlify-onegraph-internal/versions

## README

# Netlify internal helpers for OneGraph


## Install

```
npm install netlify-onegraph-internal
```

## Example

```ts
import { OneGraphClient } from "netlify-onegraph-internal";

console.log(OneGraphClient);
```

### Developing

- While the multi-file branch in the CLI isn't ready:

1. Update the GraphQL schema with:
```shell
$ npx get-graphql-schema "https://graph.netlify.com/graphql?app_id=NETLIFY_SITE_ID"
```
2. Add a new `.graphql` file under `./netlify/functions/netlifyGraph/operations`
3. Don't forget to add a `@netlify(id: SOME_UUID)` directive to the operation
4. run `cat ./netlify/functions/netlifyGraph/operations/*` > operations.graphql`
   to bundle all the operations into a single file
5. run `ntl graph:library`

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