Internal tools for use by Netlify
npm install netlify-onegraph-internal```
npm install netlify-onegraph-internal
`ts
import { OneGraphClient } from "netlify-onegraph-internal";
console.log(OneGraphClient);
`
- 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".graphql
2. Add a new file under ./netlify/functions/netlifyGraph/operations@netlify(id: SOME_UUID)
3. Don't forget to add a directive to the operationcat ./netlify/functions/netlifyGraph/operations/*
4. run > operations.graphql
to bundle all the operations into a single file
5. run ntl graph:library