I created a new bunjs cloud function using the appwrite cloud, and I tried to access the request made to the cloud function using:
log(req.body)
but I'm getting undefined
as the request, how do I resolve this?
TL;DR
Developers experiencing issue accessing the request body in a bunjs cloud function, receiving 'undefined' when using ```req.body``.
Solution: Use ```JSON.parse(req.body)``` to properly access the request body data.