
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
- Implement sorting (by $createdAt) while ...
??
- How to group permissions together (logic...
I want to make it s.t. a user can see a document only if he created it AND he has a "subscriber" label. Here's my current setup: - Collection-level permissions...
- document team roles not working
only owners is allowed as team roles.... any ideas on why? i have members of team with other roles let promise = databases.createDocument( '<DATABASE_ID>'...
