r-medina / go-client

Go client for Cayley

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Client for Cayley

Installation

go get -u github.com/cayleygraph/go-client

Usage

Log 10 nodes from the graph

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

About

Go client for Cayley


Languages

Language:Go 96.7%Language:Shell 3.3%