netlify-onegraph-internal
TypeScript icon, indicating that this package has built-in type declarations

0.10.1 • Public • Published

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

/netlify-onegraph-internal/

    Package Sidebar

    Install

    npm i netlify-onegraph-internal

    Weekly Downloads

    10,120

    Version

    0.10.1

    License

    MIT

    Unpacked Size

    549 kB

    Total Files

    65

    Last publish

    Collaborators

    • sgrove
    • anmonteiro