I try to query count related nodes of a specific one with Neo4jClient in F#. But keep receiving the following error:
System.MissingMethodException: Method not found: 'System.Type 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".
[<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)