How can I read the complete documents inside a collection

220 views Asked by At

I am using the libary python-arango. Is there an option to read inside a Collection e.g. students the complete documents? My aim is that I can see the complete documents inside a dataframe, e.g. import pandas as pd; df=pd.json_normalize(result['...']['...']).

from arango import ArangoClient

# Initialize the ArangoDB client.
client = ArangoClient()

# Connect to database as  user.
db = client.db(<db>, username=<username>, password=<password>)

print(db.collections())
students = db.collection('students')
print(students)
1

There are 1 answers

0
user17240230 On

You can convert this into to a list:

students = list(db.collection('students'))