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

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

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