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
- createCollection Deprecated
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...