I try to query count related nodes of a specific one with Neo4jClient in F#. But keep receiving the following error:
我尝试在f#中使用Neo4jClient查询一个特定的节点的相关节点。但请继续接收以下错误:
System.MissingMethodException: Method not found: 'System.Type Newtonsoft.Json.JsonContainerAttribute.get_NamingStrategyType()'.
系统。missingmethdexception:未找到的方法:“System”。类型Newtonsoft.Json.JsonContainerAttribute.get_NamingStrategyType()”。
I just cannot find the answer in documentation of the packages. Filtering with the lambda function works in the "select" stage but not in "where".
我只是无法在文件的文件中找到答案。lambda函数的过滤工作在“选择”阶段,而不是“在哪里”阶段。
[<CLIMutable>]
type User = { id : int; followers : int }
let tweetsCounted =
client.Cypher
.Match("(u:User)-[:POSTED]->(t:Tweet)")
.Where(fun u -> u.followers = 1000)
.Return(fun (u : Cypher.ICypherResultItem) (t : Cypher.ICypherResultItem) -> u.As<User>(), t.Count())
.Results
.Select(fun (x, y) -> x.id, y)
1 个解决方案
#1
0
Just so this question has an answer.
这个问题有一个答案。
I've added unit tests to test the functionality of F# with respect to WHERE
and RETURN
clauses, and they pass as expected (see http://github.com/Readify/Neo4jClient/pull/270).
我添加了单元测试来测试f#关于WHERE和RETURN子句的功能,它们按预期通过(参见http://github.com/readfy/neo4jclient/pull/270)。
The error as mentioned by @AnotherNewbie is not reproducible in their environment anymore either.
@AnotherNewbie提到的错误也不能在他们的环境中重现。
#1
0
Just so this question has an answer.
这个问题有一个答案。
I've added unit tests to test the functionality of F# with respect to WHERE
and RETURN
clauses, and they pass as expected (see http://github.com/Readify/Neo4jClient/pull/270).
我添加了单元测试来测试f#关于WHERE和RETURN子句的功能,它们按预期通过(参见http://github.com/readfy/neo4jclient/pull/270)。
The error as mentioned by @AnotherNewbie is not reproducible in their environment anymore either.
@AnotherNewbie提到的错误也不能在他们的环境中重现。