apache / apache/hugegraph

[Question] How to filter str with vertex in K-neighbor API (POST Version)

Open
#2,693 1 comment 0 reactions 0 assignees View on GitHub
api feature question
Dominant language
Java
Stars
3.2k
Forks
636
Avg merge
3d 11h
Merged PRs (30d)
14

Description

### Feature Description (功能描述)

如何根据节点字符串类型属性筛选节点,例如city属性为Hongkong
请求内容设置如下后
"label": "person",
"properties": {
"city": "P.eq('Hongkong')"
}
报错:
{
"exception": "class org.apache.hugegraph.HugeException",
"message": "Invalid value ''Hongkong'', expect a number",
"cause": "org.apache.hugegraph.HugeException: Can't read json: Unexpected character (''' (code 39)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (String)\"'Hongkong'\"; line: 1, column: 2]"
}
此外尝试了"city": "P.eq(\"Hongkong\")" 还有 "city": "P.eq(Hongkong)",均无法筛选节点并报错

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.