I have this query and as you firstName contains single quote Anthony O'Neil
:> g.addV('person')
.property('firstName', 'Anthony O'Neil')
.property('lastName', 'Andersen')
.property('age', 44)
Any Ideas how to escape it?
Escape the apostrophe using \
So your Gremlin becomes:
:> g.addV('person')
.property('firstName', 'Anthony O\'Neil')
.property('lastName', 'Andersen')
.property('age', 44)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With