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
- Python Function Deployment hits General ...
The same deployment was working without issue yesterday and I have not hit any free tier limits yet. How do I figure out what's happening? Are you having issues...
- Rate limit blocking bulk function re-cre...
Hi team, I am on Appwrite Cloud (project: staging-dataspace, SGP region). I am in the midst of deleting ~115 functions that were stuck with .fra.appwrite.run do...
- Unable to connect the git repo with appw...
I am trying to connect my existing repo with the appwrite functions. I have 2 functions in the same repo, and i was able to execute those through cli and its vi...