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
- Fails to add Custom domain and subdomain...
Case 1 : I've a domain ("remiel.work") which i want to host my portfolio thru appwrite sites. when i try to connect my domain (which i bought from spaceship, ma...
- Immediate function execution seems to be...
Whenever I try to execute a function manually I get an error that the schedule is a required field (even though Now is selected). Not a huge deal, I can obvious...
- Verification failed
I am unable to connect custom domain. it keeps on verifying and when i refresh it says verification failed. I bought my domain from hostinger. my instance is r...