arangodb / arangojs

The official ArangoDB JavaScript driver.
https://arangodb.github.io/arangojs
Apache License 2.0
601 stars 107 forks source link

fullCount value not provided in output (version >= 7.0.0) #721

Closed andrea-tesei closed 3 years ago

andrea-tesei commented 3 years ago

Hello, I'm experiencing a problem while executing query with arangojs version greater or equal than 7.0.0. When I request fullCount output via query options, the extra.stats.fullCount attribute is not present in the output as specified in API documentation.

This behavior is not present for arangojs version lower than 7.0.0 (successfully tested with v.6.14.1).

If you need other information please let me know. Looking forward to hearing from you. Thanks

pluma commented 3 years ago

I can't replicate this issue:

const cursor = await db.query(aql`FOR i IN 1..999 RETURN i`, {fullCount: true});
console.log(cursor.extra.stats.fullCount); // 999

Can you provide an example of the code that's causing this problem?

pluma commented 3 years ago

I'm closing this issue as not replicable.