
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
- GitHub connection failed
I am running a self-hosted Appwrite with Coolify. Everything is running smoothly so far and I wanted to starte develop functions. Trying to connect github with ...
- create subdomain for function
I have deployed my react project on Appwrite using Sites feature. I have added custom DNS on namecheap. I want to create new sub domains for my functions on Ap...
- Appwrite CLI
I try to deploy a function using Appwrite CLI but it says: `appwrite functions createDeployment ^ --functionId=xyz^ --code="." ^ --activate error: u...
