当运行以下代码时,我收到一个异常“CypherTypeException:包含混合类型的集合不能存储在属性中。” - 我做错了什么,需要改变什么才能使它工作?如何让Neo4JClient执行批量插入
var wordObjs = new List<object>();
foreach (string word in WordGroups.GetAllWords())
{
wordObjs.Add(new { Value = word});
}
GraphClient.Cypher
.Create("(word:Word {words})")
.WithParam("words", new { words = wordObjs})
.ExecuteWithoutResults();
你试过改变var var wordObjs = new List