Working example - CosmosDB
See original GitHub issueHi @danielcweber,
could you please post a small working example for cosmos db? I have something like this, which however doesn’t work. The last command (query.Execute()😉 throws an Exception (“Method not supported”). However, without it, the cosmos db still is empty. Seems like no query is sent.
var cosmosServer = new CosmosDbGremlinServer(hostname, port, enableSsl, dbName, graphName, authKey);
var qprovider = new ClientGremlinQueryProvider(cosmosServer);
var query = g .SetQueryProvider(qprovider) .AddV(new Person { Id = new Guid(), Name = "Peter", Age = 36, Profession = "Teacher" }) ;
query.Execute();
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
CosmosDB still requires some ceremony to work around Graphson 3/2, this is the most minimal I can come up with currently. It will be less ceremonial in later versions. Assumes ExRam.Gremlinq.CosmosDb 5.5.5. Let me know how it works for you.
https://gist.github.com/danielcweber/7ee1c6a3896ce468dcf1d9d41d590daf
Thanks a lot. I will be looking into that. Thanks for the great work!