Azure Cosmos Gremlins API.
Assume Partition key - division
Germline query to add node
g.addV('person').
property('firstName','Thomas').
property('lastName', 'Andersen').
property('age', 44)
How I will insert similar JSON data into cosmos from cosmos gremlin API or from python code .Please check address has multiple row .
persondata = {
firstName: 'Thomas',
lastName: 'Andersen',
age: 44,
Address: [
{"id": 1, "city": "city1", "comment": "something useful, I'm sure"},
{"id": 2, "city": "city2", "comment": "wisdom from the interwebs"},
{"id": 3, "city": "city3", "comment": "....."}
]
};
g.addV('person', persondata );
similar article available - http://5.9.10.113/59629769/how-to-insert-data-as-json-object-with-gremlin-api-in-azure-cosmos-db
In other words is it possible to ingest direct JSON data into gremlin API ( SQL API - possible)
e.g:
{
"id": "AndersenFamily",
"lastName": "Andersen",
"pKey": "Andersen",
}
below link for SQL APT - JSON https://learn.microsoft.com/en-us/azure/cosmos-db/sql-query-working-with-json