且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有办法将Gremlin端点添加到已使用SQL API创建的Cosmos DB帐户?

更新时间:2023-02-17 18:58:56

嗨Stan,


Cosmos DB的SQL API支持
地理空间
数据和GeoJSON标准,如果您正在使用坐标和其他点数据。 


如果您确实需要Gremlin API,则需要将数据导出/导入到新实例但不会看到意味着将数据导入Gremlin API。 Cosmos数据库迁移工具(链接
目前不支持Gremlin,但会获得导出的数据。我想查看是否有第三方工具以图表格式导入数据。


如果您有其他问题,请告诉我们。


〜麦克


It seems that if you create a graph account, you get two endpoints - documents and gremlin. But if you have created the account with the SQL API, you don't get a graph endpoint. Is there a way to add the endpoint? The root cause of this question is that I've got such a database and would like to use graph queries on it, but can't connect and make the queries with the "myaccount.documents.azure.com" endpoint.

Hi Stan,

The SQL API for Cosmos DB does support Geospatial data and the GeoJSON standard, if you are working with coordinates and other point data. 

If you really need the Gremlin API, you will need to export/import data to the new instance but not seeing a means to import data to the Gremlin API. The Cosmos DB Migration Tool (link) does not support Gremlin at this time but it will get the data exported. I am looking to see if there is a 3rd party tool to import the data in Graph format.

Please let us know if you have additional questions.

~Mike