iam trying to store user input from different react componets but i was unable to store in appwrite. but i was able to store the inputs of only one components. 1.i have created seperate file for appwrite initialisation. 2.i have used createDocument
only once after that i used updateDocument
.even though iam unable to store .
@Binyamin please look at it once
It's looks like the same issue we have dealt couple a days ago?
If so then what you need to do is to get back the ID from the createDocument
, save it then use it with the updateDocument
function
how to save the id ???
When you use the createDocument
you get back the object
https://appwrite.io/docs/client/databases?sdk=web-default#databasesCreateDocument
yes iam getting document id in my console as an object but how to save and use it in another component
You'll need to send back the info to your react parent-component which then send it to all the child components
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...