我已经使用我的 Web 应用程序中的 gremlin 查询在 Azure cosmos db 上生成了图表。但是,在生成顶点时,如果我想将图像或某些文档文件附加到该顶点,那么可以添加它。从现在开始,我只能向顶点添加属性。
对于这个新手,我有什么关于如何在 azure Cosmos db 上存储文件并在相关顶点上存储指向该文件的链接的建议吗?
最佳答案
while generating the Vertex if i want to attach an image or some document file to that vertex then can it be added. Since now I am able to only add properties to the vertex.
正如你所说,在 Azure Cosmos DB: Graph API我们只能添加属性来表达有关顶点和边的信息。
根据您的要求(附加图像或一些文档文件),您可以尝试将图像或文档文件存储在外部存储中,例如 Azure Storage ,然后您可以在属性中存储图像或文档文件的 URL。
关于azure - 文件是否可以存储在 Azure cosmos db 上,用于附加属性的顶点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45477434/