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
- Host: GitHub
- URL: https://github.com/cayleygraph/javascript-client
- Owner: cayleygraph
- Created: 2019-10-14T10:21:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T18:51:29.000Z (over 3 years ago)
- Last Synced: 2024-10-28T16:56:43.566Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@cayleygraph/cayley
- Size: 340 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
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);
}
});
```