https://github.com/cayleygraph/go-client
Go client for Cayley
https://github.com/cayleygraph/go-client
Last synced: about 1 year ago
JSON representation
Go client for Cayley
- Host: GitHub
- URL: https://github.com/cayleygraph/go-client
- Owner: cayleygraph
- Created: 2019-12-15T19:56:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T20:05:19.000Z (over 6 years ago)
- Last Synced: 2025-03-22T21:26:14.135Z (about 1 year ago)
- Language: Go
- Size: 22.5 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Go Client for [Cayley](https://github.com/cayleygraph/cayley)
### [Documentation](https://godoc.org/github.com/cayleygraph/go-client)
### Installation
```bash
go get -u github.com/cayleygraph/go-client
```
### Usage
#### Log 10 nodes from the graph
```go
package main
import (
"context"
"fmt"
"github.com/cayleygraph/go-client"
)
func main() {
c := client.NewAPIClient(client.NewConfiguration())
result, _, _ := c.QueriesApi.Query(context.TODO(), "gizmo", "g.V().getLimit(10)")
fmt.Printf("%v", result.Result)
}
```