functions.createExecution data is a string, while data is expected as json? I'm trying an example function, how would I pass the data if sdk expects string? js
deleteArticleFunction: async (id:string)=>{
await functions.createExecution("TestFunction", {remove:id}, true)
},
Stringify it, like such
await functions.createExecution("TestFunction", JSON.stringify({remove:id}), true)
Then, inside your function parse it
Cheers
btw, in G4 of Appwrite function you'll probably won't need to that https://github.com/appwrite/appwrite/discussions/5016
looks great, hopefully will come with github integration for functions
[SOLVED] functions.createExecution data is a string, while data is expected as json?
Recommended threads
- Docker Compose MongoDB Setup
everythings work fine but the mongodb fails on startup everytime. log: ``` Generating random MongoDB keyfile... /bin/bash: line 9: : No such file or directory ...
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...
- Magic Link woes/noob
Magic Link is working; it sends the link to my email. But the link itself always leads to "Page Not Found. The page you're looking for doesn't exist". Clicking ...