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
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- Query.search limitation
Since `string` is deprecated I used `varchar`, and now I cant use `Query.contains` , so I setup fulltext index and started using `Query.search` the issue is `Qu...