the doc says the context param of server Functions contains 4 elements. req, res, log, and error. but we don't know what's available for us inside these 4 element objects. I tried logging the whole object, but seems the Appwrite console doesn't dump objects, even if we pass it as JSON.stringify(<OBJECT>). it only shows string-based values.
So is there any way for me to check the whole object(s)?
They're mostly strings and objects...I'm surprised logging it or stringifying it doesn't work π§
Res has functions and log and error are functions so you can't log those
You do know we documented all of it, right?
yes I checked those. I'm mainly asking about the TS support for better DX
Ya we've talked about it internally multiple times. I think it's a matter of the time to do it, considering we have a dozen or so runtimes
think i can make any contribution to this?
it would be best to start with an issue
[SOLVED] any TypeScript support for Function's context object?
Recommended threads
- [SOLVED] curl error Number: 6 β function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...
- NEW ERROR Invalid document structure: At...
Error: ```AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)``` Iβm encounter...