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

Bug: 'StandardCollection' object has no attribute 'result' #210

Open qohelet opened 3 years ago

qohelet commented 3 years ago

In the documentation there's a chapter on Batch API Execution which refers to the following code:

# Retrieve the results of successful jobs.
metadata = job1.result()
assert metadata['_id'] == 'students/Kris'

metadata = job2.result()
assert metadata['_id'] == 'students/Rita'

cursor = job3.result()
assert cursor.next() == 100000

# If a job fails, the exception is propagated up during result retrieval.
try:
    result = job4.result()
except AQLQueryExecuteError as err:
    assert err.http_code == 400
    assert err.error_code == 1501
    assert 'syntax error' in err.message

However, executing job*.result() will always result in a *** AttributeError: 'StandardCollection' object has no attribute 'result' Also the Repository doesn't have any codelines containing def result. Was this eventually deprecated and removed? What is the replacement? Most of the methods can't be used after the commit.