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) },
Summary
Solution: The issue occurs when passing data to the `functions.createExecution` method in the Appwrite SDK. The data is expected to be in JSON format, but it is currently being passed as a string. To solve this, you need to parse the data before passing it to the function.
Here's the updated code snippet:
```js
deleteArticleFunction: async (id:string)=>{
await functions.createExecution("TestFunction", JSON.stringify({remove:id}), true)
},
```
By using `JSON.stringify`, you are converting the data into a JSON string before passing it to the function. This should resolve the issue.