ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

fullCount not working on fetchByExample() (SimpleQuery) #190

Open dovivi opened 4 years ago

dovivi commented 4 years ago

Hi, I just realized that fullCount does not work on fetchByExample() which uses SimpleQuery. Apparently it only works on AQLQuery. I tried with both fullCount = True, or options={"fullCount": True} but none of them returned the fullCount value (within extra.stats from the query result) What I tried:

mycollection.fetchByExample(example_dict, limit=10, skip=0, fullCount=True)

and

mycollection.fetchByExample(example_dict, limit=10, skip=0, options={"fullCount": True})

limit and skip seem to work (also the count when I use it) I'd really like to be able to get it with the fetchByExample function, is there any possibility? For information: I'm using ArangoDB 3.4.9 and pyArango 1.3.4 Thanks!