Gremlinq / ExRam.Gremlinq

A .NET object-graph-mapper for Apache TinkerPop™ Gremlin enabled databases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I managed to connect to Cosmos DB Emulator

chrisjensenuk opened this issue · comments

Not an issue but I managed to query my local Cosmos DB Emulator using the v8.0 preview. Just thought I'd share.

I needed to re-configure the WebSocket after the Cosmos DB setup. Hacky but it worked.

.UseCosmosDb(builder => builder
    .At("ws://localhost:8901", "", "")
    .AuthenticateBy("")
    .ConfigureWebSocket(builder => builder
        .At("ws://localhost:8901")
        .AuthenticateBy("/dbs/{db}/colls/{graph}", "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="))));

Don't worry about populating the empty strings "" as the ConfigureWebsocket provides the actual connection information that will be used. You'll need to provide values for {db} and {graph}

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.