Need help to keep specific structure (vertex/Edge properties ) JSON in azure cosmos graph

22 views
Skip to first unread message

Prabu L

unread,
Dec 16, 2022, 8:42:27 AM12/16/22
to Gremlin-users
Hi All,

I am trying to add vertex properties as key & value pairs but something i am looking for some customized structure as below .

  "Vertex": [ 
    { 
      "id": "Test1", 
      "label": "Runnable", 
      "name": " Test1", 
      "Attributes": [ 
        { 
          "name": "Test Name", 
          "label": "Test Label", 
          "value": "1", 
          "type": "Int", 
          "isShow": "True" 
        }, 
......
]


but when i trying g.addV().property('name', 'mark', 'm-k1', 'meta1', 'm-k2', 'meta2')

All properties bundled with "properties":{
}  

can we add properties name of Attributes ?
Reply all
Reply to author
Forward
0 new messages