简体   繁体   English

neo4j节点和关系上允许使用的属性是什么?

[英]What are allowed properties on neo4j nodes and relationships?

Some things i noticed while trying out some different properties 我在尝试一些不同的属性时注意到一些事情

An array of objects as value does not work 作为值的对象数组不起作用

create (n {foo: [{baz:"fox"}, {baz:"quix"}] })<-[:a]-() return n

An array of values as value does work 值数组有效

create (n {foo: ["bar", "baz"] })<-[:a]-() return n

And array of object does not work 和对象数组不起作用

create (n [{baz:"fox"}, {baz:"bar"}] )<-[:a]-() return n

Where can i get the full specification of what is and what is not allowed? 我在哪里可以获得什么是什么和不允许什么的完整规范? Obviously "it's just JSON" doesn't fly. 显然,“这只是JSON”不会运行。 Also you can not quote the property keys. 同样,您不能引用属性键。

You can java primitive types, String or array of those as property values. 您可以将Java基本类型,字符串或这些类型的数组作为属性值。 See http://neo4j.com/docs/stable/property-values-detailed.html for details. 有关详细信息,请参见http://neo4j.com/docs/stable/property-values-detailed.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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