partition keySee original GitHub issue
When setting up a graph db in Cosmos you have to specify a partition key, and according to this post:
you should then specify the partition key in all your queries, by adding:
Is there a way in Gremlinq to setup a partition key, or is it up to myself, to addd .has(‘partitionKey’, ‘partitionKey_value’) to my queries?
- Created 4 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
so how do you get all vertices on a partitionKey? I would expect to do something like this g.V<Vertex>(new CosmosDbKey(“US”)) (US = if your partition your data on country codes)
But the CosmosDbKey only supports id,partitionKeyValue, which will always return 1 element
This will work when instances of the CosmosDbKey-struct are passed into V(…).