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
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- IMPORTANT! SOC-2 Request Failing
Issue requesting SOC-2. If tried other/private browser as well as filling in optional fields.