Step - property_json

property_json ยท category: Changing the graph

Sets every key of the given map (or JSON object) as a property of the incoming vertex (Graphersal extension); a key id or label makes an ordinary property, never the element's id or label.

Forms

property_json(arg1: any)

Example

g.v(1).property_json(#{age: 30, tags: ["a", "b"]}).values("tags").next()   // ["a", "b"]

See also