[SOLVED] Unable to update document as expected in realtime, but able to get my documents in realtime
- 1
- Databases
- Realtime
- Web
What do you mean? Maybe you can share a video of what's going on?
@Steven then what's the ryt way if I could know
@Steven Sure
The mutation should only execute based on the submission
@Steven i don't know how to use mutation here , will there be any conflict with the websocket connection i meant realtime , idk
I think you need to use a mutation.
I'm not even sure why you have realtime
@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
@Steven then lemme get rid of realtime and use mutation
And comeback :appwritepeepo:
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
@Steven thnk u boss 🫡
Any pitfalls to be aware of while using mutation?? Sorry for such a question
Make sure to invalidate the right key
@Steven okiee
@Steven everything works perfectly , and thnx a lot for assisting me
[SOLVED] Unable to update document as expected in realtime, but able to get my documents in realtime
@Berserker please help me i have dm you please check
@bharath try asking it here itself so that you can get more support from others as well
no one is responding prope
@bharath go ahead and ask ur question
And try asking your question with proper details
ok. i asked you because the problem you have got is similar to my problem
@bharath i will share u my code itself then
@bharath give me some time
Ok
@bharath
Recommended threads
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...