Unexpected keyword argument but yesterday it still ran with it at reading a complete collection
Closed this issue · 0 comments
rosenberg12 commented
Sorry, for the new issue.
I have a problem. I would like to read out all documents from a collection, but there is the problem that the query stops after some time. However, I have found a solution with stream=True
and LIMIT=100
. Yesterday I ran the programme with LIMIT
and that worked, but today I get the following error message: TypeError: execute() got an unexpected keyword argument 'LIMIT'
What is the reason for this? How do I fix it?
from arango import ArangoClient
# Initialize the ArangoDB client.
client = ArangoClient()
# Connect to database as user.
db = client.db(<db>, username=<username>, password=<password>)
cursor = db.aql.execute(f'FOR doc IN <Collection> RETURN doc', batch_size=10000, stream=True, LIMIT=100)
result = [doc for doc in cursor]
[OUT]
TypeError: execute() got an unexpected keyword argument 'LIMIT'