Current version of grandstack, neo4j 4.0.3 community edition
When I try to call a listing page, I get this error message (in the browser):
react_devtools_backend.js:6 [GraphQL error]: Message: LIMIT: Invalid input. '10.0' is not a valid value. Must be a non-negative integer., Location: [object Object], Path: Artikel
Seems to be a driver error, but hard to track down. The API doesn't mention an error, the generated query is:
MATCH (`user`:`User`) WITH `user` ORDER BY user.name ASC RETURN `user` { .id , .name ,avgStars: apoc.cypher.runFirstColumn("MATCH (this)-[:WROTE]->(r:Review) RETURN toFloat(avg(r.stars))", {this: user}, false),numReviews: apoc.cypher.runFirstColumn("MATCH (this)-[:WROTE]->(r:Review) RETURN COUNT(r)", {this: user}, false)} AS `user` LIMIT $first
{
"offset": 0,
"first": 10,
"filter": {}
}
The $first (int) argument is obviously converted to a string further down the line.
How can I avoid this error?
TIA, best regards,
Christoph