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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...