Ad
Update A Property Value Without Adding An Additional Value, In Gremlin_node
I have written this gremlin query to update a property:
g.V("7cb57dad-d261-29cb-b886-affcd7442b73").property('tname', "updated tribename")
Is this the correct way to update a property in gremlin-node? Or do I have to pass in single property to update a property without adding additional value?
Ad
Answer
If you want to replace the prior value then you need the single
keyword to be explicitly specified as in:
g.V("7cb57dad-d261-29cb-b886-affcd7442b73").
property(single, 'tname', "updated tribename")
Ad
source: stackoverflow.com
Related Questions
- → Maximum call stack exceeded when instantiating class inside of a module
- → Browserify api: how to pass advanced option to script
- → Node.js Passing object from server.js to external modules?
- → gulp-rename makes copies, but does not replace
- → requiring RX.js in node.js
- → Remove an ObjectId from an array of objectId
- → Can not connect to Redis
- → React: How to publish page on server using React-starter-kit
- → Express - better pattern for passing data between middleware functions
- → Can't get plotly + node.js to stream data coming through POST requests
- → IsGenerator implementation
- → Async/Await not waiting
- → (Socket.io on nodejs) Updating div with mysql data stops without showing error
Ad