
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
- Issue with Appwrite Function Execution –...
Hi all, I'm encountering an issue when calling an Appwrite function from my Flutter app. **Environment:** ```Flutter SDK: 3.27.3 Appwrite Flutter SDK: 16.1.0```...
- Accessing caller UserID on Function Exce...
I'm working with function, which should generate a document in Collection B, but only if user who's calling the function, is the owner of Document in Collection...
- Steps to Enable HTTP Access to appwrite ...
Hi Appwrite team, I have created a function and I want it to receive and incoming post request from a webhook( a webhook that notifies the function to update t...
