go-gremlin / gremlin

Go graph database client for TinkerPop3 Gremlin Server
MIT License
115 stars 54 forks source link

Request has no field or method Exec #18

Open diegotole opened 5 years ago

diegotole commented 5 years ago

gremlin.Query("g.V()").Exec undefined (type *gremlin.Request has no field or method Exec)

here is my code:

import "github.com/go-gremlin/gremlin"

func main() {

if err := gremlin.NewCluster(MY_URL_HERE); err != nil {

    fmt.Printf("error happened\n")
}

data, err := gremlin.Query(g.V().toList()).Exec() if err != nil { // handle error }

}

diegotole commented 5 years ago

installed using: go get github.com/go-gremlin/gremlin

shan98 commented 5 years ago

Also having an issue with this, any updates?

diegotole commented 5 years ago

Also having an issue with this, any updates?

my issue was that I was trying to connect to AWS's Neptune. somehow this was not compatible. after changing libs it worked

softngineer commented 4 years ago

@diegotole what did you change to for Neptune?

diegotole commented 4 years ago

In the end i got it working using boto3

Em sex., 29 de mai. de 2020 às 22:55, softngineer notifications@github.com escreveu:

@diegotole https://github.com/diegotole what did you change to for Neptune?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/go-gremlin/gremlin/issues/18#issuecomment-636282275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQFSFO4M2XOSSDZEIBLUQDRUCNVBANCNFSM4HJFRHMA .