I want to find all property names of specific label on AgensGraph.
Which command am I use?
There is no command to find property names.
But, you can use function "jsonb_object_keys" for it.
agens=# create (:v1{key:1,value:2});
GRAPH WRITE (INSERT VERTEX 1, INSERT EDGE 0)
agens=# create (:v1{id:1,text:'value'});
GRAPH WRITE (INSERT VERTEX 1, INSERT EDGE 0)
agens=# match (n:v1) return distinct jsonb_object_keys( properties(n) );
jsonb_object_keys
-------------------
"text"
"id"
"value"
"key"
(4 rows)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.