【发布时间】:2021-01-15 09:24:57
【问题描述】:
假设我有一个带有“人”顶点的图。 每个顶点都有一个“名称”和“年龄”属性,除了一个。
现在我正在尝试按年龄排序:
g.V().order().by('age', asc).valueMap()
但它失败了:
"The property does not exist as the key has no associated value for the provided element: v[328]:age"
看看这个:https://gremlify.com/ybbfwd2hbbc
我怎样才能用 0 来“替换”缺失的属性?谢谢!
【问题讨论】: