Skip to content

cayleygraph/javascript-client

Repository files navigation

JavaScript Client for Cayley

Installation

npm install @cayleygraph/cayley

Usage

Log 10 nodes from the graph

import * as cayley from "@cayleygraph/cayley";

const client = new cayley.Client();
const response = client.query(g.V().getLimit(10));
response
  .then(res => res.json())
  .then(nodes => {
    for (const node of nodes) {
      console.log(node);
    }
  });