我正在使用C#并且使用neo4jclient。 我知道如果我向neo4jclient传递一个类对象,它可以创建一个节点(我已经尝试过了)。 现在在我的类中,我想添加一个字典属性,但是这样做不起作用。 我的代码:
GraphClient client = getConnection();
client.Cypher
.Merge("(user:User { uniqueIdInItsApp: {id} , appId: {appId} })")
.OnCreate()
.Set("user = {newUser}")
.WithParams(new
{
id = user.uniqueIdInItsApp,
appId = user.appId,
newUser = user
})
.ExecuteWithoutResults();
User
在 C# 中包含一个属性,它是一个 Dictionary
。当执行cypher时,会显示错误。
MatchError: Map() (of class scala.collection.convert.Wrappers$JMapWrapper)
有没有人能帮助我?
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
有人知道为什么吗?我知道这是很久以前的事情了。 - flieks