0

语境

我们受限于 ArangoDB 建议不要使用以下划线开头的属性名称 _ https://www.arangodb.com/docs/stable/data-modeling-naming-conventions-attribute-names.html因为我们希望确定任何此类ArangoDB 将不会在稍后阶段使用该属性。

我们可以添加一个属性

properties:{myproperty1:'abc',_myUnderscoreProperty:'def'},

但是如果我们对代表用户的文档执行此操作,则

properties:{_name:'abc',_email:'abc@graphileon.com'},

我们需要能够在properties._name. 但这似乎是不可能的。

问题

这是可能的还是有解决方法?

4

1 回答 1

1

对的,这是可能的。您可以在字段上创建唯一索引properties._name

于 2020-06-20T19:41:31.863 回答