Back

[CLOSED] UpdateDocument()..

  • 1
  • Databases
  • Web
bharath
13 Apr, 2023, 02:09

I have createDocument in one component and I want to use the documentid in another component to updateDocument

TL;DR
User is seeking help with using the document ID from one component in another component to update the document in React. Other users in the community suggest finding a React course for more practice. No solution provided in the thread.
Drake
13 Apr, 2023, 02:12

And?

bharath
13 Apr, 2023, 02:14

How do I use documentid in another component to update the document

Drake
13 Apr, 2023, 02:16

Not sure what you mean...did you look at the result of create document?

bharath
13 Apr, 2023, 02:17

Create document is working fine

bharath
13 Apr, 2023, 02:17

But I need to update my document in another component

Drake
13 Apr, 2023, 02:18

Look at the response of create document

Drake
13 Apr, 2023, 02:18

I'm not sure what the problem is

bharath
13 Apr, 2023, 02:18

Yes iam getting the id in my console

Drake
13 Apr, 2023, 02:19

Ok and?

bharath
13 Apr, 2023, 02:23

I have created my document in one component and I want to update my document with same documentid in another component

bharath
13 Apr, 2023, 02:24

I want to use that id in another component

Drake
13 Apr, 2023, 02:24

I think you really need more practice with react

bharath
13 Apr, 2023, 02:25

I have practiced it

bharath
13 Apr, 2023, 02:25

Could please help me with that

Drake
13 Apr, 2023, 02:26

Are you able to get the id after creating the document?

bharath
13 Apr, 2023, 02:27

Yes

Drake
13 Apr, 2023, 02:28

I can't help any more then. You'll need to find some react course

bharath
13 Apr, 2023, 02:29

Ok let someone in this community will help

bharath
13 Apr, 2023, 02:30

Iam creating new post for the people who know react

bharath
13 Apr, 2023, 02:30

And help me with that

Drake
13 Apr, 2023, 02:30

I suggest going to a react discord server

bharath
13 Apr, 2023, 02:30

Ok

joeyouss
24 Apr, 2023, 07:55

[CLOSED] UpdateDocument()..

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more