0

我想在 AgensGraph 上查找每个属性的类型?

agens=# create (:v1{key:1,value:2});
GRAPH WRITE (INSERT VERTEX 1, INSERT EDGE 0)

我怎样才能找到它?

4

1 回答 1

0

使用函数“jsonb_typeof”来查找属性类型。

agens=# match (n:v1) return jsonb_typeof(n.integer), jsonb_typeof(n.text);
 jsonb_typeof | jsonb_typeof 
--------------+--------------
 "number"     | "string"
(1 row)
于 2019-06-28T03:56:08.327 回答