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
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- SyntaxError: Unexpected end of JSON inpu...
I am trying to create a fcm push notification service using appwrite functions with its REST API to invoke that function from my client side app and getting thi...
- Experiencing inconsistent "500 general_u...
I am developing a task management app that uses Appwrite auth. My project is hosted on Appwrite cloud and I've created basic server-side authentication followin...