简体   繁体   中英

Deeply Nested Data - Properties in AgensGraph

我们可以在AgensGraph中为顶点或边具有高度嵌套的属性吗?

Unless other graph databases such as Neo4j, in AgensGraph properties, can have nested JSON objects as their values. AgensGraph uses PostgreSQL's JSONB and any data type supported by PostgreSQL can be stored into the properties of vertices and edges.

So the answer is yes, you can have highly nested properties in AgensGraph for your vertexes or edges.

Example:

CREATE (:person{name:'Tom',phone:{home:'4086513728',work:{num:'4089665432',direct:'444'},mobile:'4084563112'}})-[:knows{fromdate:'2011-11-24'}]->(:person{name:'Bob'});

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM