netlify-onegraph-internal

v0.0.25
Internal tools for use by Netlify

Netlify internal helpers for OneGraph

Install

npm install netlify-onegraph-internal

Example

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

Metadata

  • MIT
  • Whatever
  • sgrove
  • released 2/7/2022

Downloads

Maintainers