
So, I'm trying to fetch the data from database and for some reason I'm seeing different things in console by returning promise I'm getting: [[object]] and by returning promise.document I'm getting [array] why ? You can see in chapters key in both the images

Using relation? If yes You would have to console log separately

promise
is a DocumentList
which includes the docs and a total property. an Object.
promise.documents
is an array of Documents.
do a console.log(JSON.stringify(promise, null, 4));
to see a prettified data.
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- #support
<#1072905050399191082> any help on that?
- Database update issue
When updating value of any attribute from appwrite Dashboard then this issue facing
