question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Working example - CosmosDB

See original GitHub issue

Hi @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:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
danielcwebercommented, Dec 14, 2018

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

0reactions
candidsoncommented, Dec 19, 2018

Thanks a lot. I will be looking into that. Thanks for the great work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Cosmos DB for NoSQL client library for .NET
Learn how to build a .NET app to manage Azure Cosmos DB for NoSQL account resources in this quickstart.
Read more >
An Introduction and Tutorial for Azure Cosmos DB - InfoQ
Azure Cosmos DB is a globally distributed, JSON-based database delivered as a 'Platform as a Service' (PaaS) in Microsoft Azure. It allows users ......
Read more >
Explain by Example: CosmosDB
Anyway, I work in this field called "Databases" and I store things for a living. Oh cool, what kind of things do you...
Read more >
Azure Cosmos DB Tutorial : Practical Example : Part 3
Thanks Cosmos Db Tutorial Azure Cosmos Db Practical Example where we ... In the next part, we have explained the Practical working example...
Read more >
Learn Live - Get started with Azure Cosmos DB SQL API
... DB SQL API work 27:39 When should you use Azure Cosmos DB SQL API 44:57 Knowledge Check 50:10 Summary module 1 50:50...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found