Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create an edge between two vertex with .To() #34

Open
rtoscani opened this issue Sep 18, 2020 · 0 comments
Open

Unable to create an edge between two vertex with .To() #34

rtoscani opened this issue Sep 18, 2020 · 0 comments

Comments

@rtoscani
Copy link

After using .To() method with a string as parameter, the string was not escaped in the query generation.

Code example:

g := grammes.Traversal()
g = g.V("jhon").As("p1")
vAs := "v1"
g = g.AddV("person").As(vAs).Property(token.ID, "alex").Property("date", date)
g = g.AddE("relates").From("p1").To(vAs).Property("date", date)

Result query is:
g.V("jhon").as("p1").addV("person").as("v1").property(T.id,"alex").property("date","2020-09-18T17:02:48").addE("relates").from("p1").to(v1).property("date","2020-09-18T17:02:48")

Expected result:
g.V("jhon").as("p1").addV("person").as("v1").property(T.id,"alex").property("date","2020-09-18T17:02:48").addE("relates").from("p1").to("v1").property("date","2020-09-18T17:02:48")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant