neo4j では、さまざまなプロパティを使用してノードと関係を追加できます。
node.setProperty("NodePropertyName",NodePropertyValue)
relationship.setProperty("EdgePropertyName",EdgePropertyValue)
MAP 、 Array 、またはユーザー定義オブジェクトなどの非プリミティブ データ型をNodePropertyValueandとして使用できる方法はありEdgePropertyValueますか?
MAP<>または、またはの個別のプロパティとしてすべての値を個別に指定する必要がありますNodeかRelationship?
使ってみた
node.setProperty("USER_PROPERTIES", GraphNode.getNodeproperties());
where,
GraphNode.getNodeproperties() returns MAP<String,Double>
しかし、これは私にエラーを与えています:
java.lang.IllegalArgumentException: Unknown property type on: {Property1=0.0, Property2=0.0, Property3=0.0, Property4=0.0, Property5=0.0, Property6=0.0, Property7=0.0}