Skip to content

How to use this go-client #2

@rajsenthil

Description

@rajsenthil

I tried following the README

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

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

It throws out error and the code breaks at c := client.NewAPIClient(client.NewConfiguration())
is there anything else needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions