Back

[SOLVED] Unable to update document as expected in realtime, but able to get my documents in realtime

  • 1
  • Databases
  • Realtime
  • Web
Drake
8 Apr, 2023, 16:16

What do you mean? Maybe you can share a video of what's going on?

TL;DR
User is experiencing an issue with updating documents in real-time. They have reached out for support and are waiting for assistance. Another user suggests asking their question in the support channel for more help. The original user then updates the thread title to indicate that the issue has been solved. There is a brief exchange of gratitude and a tip about invalidating the right key. The original user asks about pitfalls while using mutation, and the second user suggests using mutation instead of real-time for their use case. The original user agrees and plans to use mutation. They then ask for clarification on the purpose of real-time and mention not knowing how to use mutation.
Berserker
8 Apr, 2023, 16:16

@Steven then what's the ryt way if I could know

Berserker
8 Apr, 2023, 16:16

@Steven Sure

Drake
8 Apr, 2023, 16:16

The mutation should only execute based on the submission

Berserker
8 Apr, 2023, 16:18

@Steven i don't know how to use mutation here , will there be any conflict with the websocket connection i meant realtime , idk

Drake
8 Apr, 2023, 16:18

I think you need to use a mutation.

Drake
8 Apr, 2023, 16:18

I'm not even sure why you have realtime

Berserker
8 Apr, 2023, 16:19

@Steven it's not needed ryt even i thought so,

Then what's the ryt way and use case of realtime ??? If I could know

Berserker
8 Apr, 2023, 16:20

@Steven then lemme get rid of realtime and use mutation

And comeback :appwritepeepo:

Drake
8 Apr, 2023, 16:26

Realtime is needed if you need to know if something updated due to some other event. For example, a chat room where someone else sent a message

Berserker
8 Apr, 2023, 16:28

@Steven thnk u boss 🫡

Any pitfalls to be aware of while using mutation?? Sorry for such a question

Drake
8 Apr, 2023, 16:29

Make sure to invalidate the right key

Berserker
8 Apr, 2023, 16:56

@Steven okiee

Berserker
9 Apr, 2023, 08:34

@Steven everything works perfectly , and thnx a lot for assisting me

Drake
9 Apr, 2023, 15:15

[SOLVED] Unable to update document as expected in realtime, but able to get my documents in realtime

bharath
14 Apr, 2023, 13:50

@Berserker please help me i have dm you please check

Berserker
14 Apr, 2023, 14:10

@bharath try asking it here itself so that you can get more support from others as well

bharath
14 Apr, 2023, 14:10

no one is responding prope

Berserker
14 Apr, 2023, 14:14

@bharath go ahead and ask ur question

And try asking your question with proper details

bharath
14 Apr, 2023, 14:17

ok. i asked you because the problem you have got is similar to my problem

Berserker
14 Apr, 2023, 14:29

@bharath i will share u my code itself then

Berserker
14 Apr, 2023, 14:29

@bharath give me some time

bharath
14 Apr, 2023, 15:01

Ok

Berserker
15 Apr, 2023, 00:54
Berserker
15 Apr, 2023, 00:55

@bharath

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