我发现我需要在我的模式中将谓词类型指定为 int ,否则数字将存储为 type float
:
MyNumericalProperty: int @index(int) .
我的方面也是数字,在从 dgraph 返回的 JSON 中,它们看起来像这样:
"MyProperty|MyPropertyFacet":1.000000
有没有办法将它作为 int 添加到架构中?
我发现我需要在我的模式中将谓词类型指定为 int ,否则数字将存储为 type float
:
MyNumericalProperty: int @index(int) .
我的方面也是数字,在从 dgraph 返回的 JSON 中,它们看起来像这样:
"MyProperty|MyPropertyFacet":1.000000
有没有办法将它作为 int 添加到架构中?