An open API service indexing awesome lists of open source software.

https://github.com/cayleygraph/javascript-client

JavaScript client library for Cayley
https://github.com/cayleygraph/javascript-client

Last synced: about 1 year ago
JSON representation

JavaScript client library for Cayley

Awesome Lists containing this project

README

          

# JavaScript Client for [Cayley](https://github.com/cayleygraph/cayley)

### [Documentation](https://cayleygraph.github.io/javascript-client/)

### Installation

```bash
npm install @cayleygraph/cayley
```

### Usage

#### Log 10 nodes from the graph

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