我正在开发一个存储标准文档和图形文档的Cosmos DB应用程序 . 我们通过documentdb api保存这两种类型,并且我能够运行使用DocumentClient.CreateGremlinQuery方法返回Graphson的图形查询 . 此图形将由Web应用程序读取,并显示供用户查看的图表等 .

我的问题是我无法定义使用Microsoft.Azure.Graphs方法时返回的Graphson格式的版本 . 所以我查看了Gremlin.net,从文档中可以看到更多这方面的选项 .

但是我发现很难使用gremlin.net连接到Cosmos Document Db . 您定义的服务器变量如下:

var server = new GremlinServer(“https://localhost/ ",8081 , enableSsl: true, username: $" / dbs / TheDatabase / colls / TheCOllection ", password: " C2y6yDjf5 / R ob0N8A7Cgv30VRDJIWEHLM 4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw / Jw ==”);

然后导致uri具有“/ gremlin”并且它无法找到数据库 endpoints .

有没有人使用Gremlin.net连接到Cosmos文档数据库(不是配置为图形数据库的Cosmos数据库),它已被设置为文档数据库而不是图形数据库?其中的文档格式为graph / gremlin,其格式为_isEdge / label / _sink等 .

干杯,

马克(文件db / Gremlin / graph newbie)