
I am currently upgrading my appwrite functions and I have added the following code to access the variable req
and res
variables.
type Context = {
req: any;
res: any;
log: (msg: any) => void;
error: (msg: any) => void;
};
export default async ({ req, res, log, error }: Context) => {
//...
};
But because req
and res
are of type any
I don't know which functions (e.g. res.send()
/ res.json()
) or attributes I can use safely.
Is there a documentation for the current appwrite 1.4 or preferably a a class I can use for req
and res
?

Recommended threads
- custom requirements.txt file
How do I specify a custom requirements.txt file when creating a serverless function through the Appwrite console?
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
