krlawrence / graph

Practical Gremlin - An Apache TinkerPop Tutorial
Apache License 2.0
830 stars 251 forks source link

Setting properties stored in an object/dict #248

Closed vapps-team closed 11 months ago

vapps-team commented 1 year ago

Is it possible to set an arbitrary number of properties stored in a JS object, python dict, etc.?

E.g.,

var properties = { a: 1, b: 2, c: [3, 4]}; g.addV('type').properties(properties);

Would add the following properties:

krlawrence commented 11 months ago

Thanks for the question. The ability to pass a map of key/value pairs to the property step was added to Gremlin as part of the TinkerPop 3.6.0 release.

krlawrence commented 11 months ago

I'm going to close the issue but please feel free to re-open if you have additional questions.