While creating nodes, we have to give properties of node right, in that property I've quoted text and make it as gremlin query.
Gremlin query is not executing if we have quotes in between string like can't
, don't
and L'oreal
.
While creating nodes, we have to give properties of node right, in that property I've quoted text and make it as gremlin query.
Gremlin query is not executing if we have quotes in between string like can't
, don't
and L'oreal
.
Ran across this problem today. For those using Gremlin.Net and passing in a query string to g.SubmitAsync. If you are replacing any single quotes in a properties text using .Replace, include two slashes as c# removes the first one. So it will look something like;
$".property('height', '{account.Height.Replace( "'", "\\'" )}')"