# GraphQL Error

**URL:** <https://community.neo4j.com/t/graphql-error/17199>\
**Category:** GraphQL & GRANDstack\
**Created:** [April 16, 2020, 12:39pm UTC](https://community.neo4j.com/t/graphql-error/17199 "2020-04-16T12:39:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingelsan](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/pingelsan/32/5224_2.png) [@pingelsan](https://community.neo4j.com/u/pingelsan)\
**Post date:** [April 16, 2020, 12:39pm UTC](https://community.neo4j.com/t/graphql-error/17199/1 "2020-04-16T12:39:27Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![leonardo.bouchan](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/leonardo.bouchan/32/4647_2.png) [@leonardo.bouchan](https://community.neo4j.com/u/leonardo.bouchan)\
**Post date:** [May 7, 2020, 6:19am UTC](https://community.neo4j.com/t/graphql-error/17199/2 "2020-05-07T06:19:05Z")

</div>

I also have the same issue , can anybody help?

---

<div class="post-metadata">

**Author:** ![leonardo.bouchan](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/leonardo.bouchan/32/4647_2.png) [@leonardo.bouchan](https://community.neo4j.com/u/leonardo.bouchan)\
**Post date:** [May 7, 2020, 6:28am UTC](https://community.neo4j.com/t/graphql-error/17199/3 "2020-05-07T06:28:22Z")

</div>

I was reading and i found this [Neo4jError: LIMIT: Invalid input. '10.0' is not a valid value. Must be a non-negative integer. · Issue #547 · neo4j/neo4j-javascript-driver · GitHub](https://github.com/neo4j/neo4j-javascript-driver/issues/547) , i think that we need to put

> LIMIT neo4j.int($first)

, I tried but i dont work, im' doing this on schema.grapql

---

<div class="post-metadata">

**Author:** ![leonardo.bouchan](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/leonardo.bouchan/32/4647_2.png) [@leonardo.bouchan](https://community.neo4j.com/u/leonardo.bouchan)\
**Post date:** [May 7, 2020, 6:33am UTC](https://community.neo4j.com/t/graphql-error/17199/4 "2020-05-07T06:33:09Z")

</div>

@pingelsan I Did an

> npm update

on the API folder and the error was solved.

---

<div class="post-metadata">

**Author:** ![pingelsan](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/pingelsan/32/5224_2.png) [@pingelsan](https://community.neo4j.com/u/pingelsan)\
**Post date:** [May 11, 2020, 3:45pm UTC](https://community.neo4j.com/t/graphql-error/17199/5 "2020-05-11T15:45:19Z")

</div>

Thank you, I'll give it a try! Hopefully it's so easy. (The error appeared a day or two after I did `npm install`, so that's a little weird.)
