Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 529 Bytes

readme.md

File metadata and controls

27 lines (20 loc) · 529 Bytes

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);
    }
  });