When multiple users push data to Realtime Database to get the firebase-generated-key? How do they get their key and not someone else's? #361
-
Beta Was this translation helpful? Give feedback.
Answered by
WolfgangSenff
Oct 4, 2023
Replies: 1 comment 3 replies
-
They will definitely receive all of it. The way I typically solve this type of problem is by ensuring the data includes or even is keyed directly to the user's ID, so having like a document that has the user's ID as parse of the identifier, and then when the realtime database has data pushed, including the ID of the user that pushed it. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
shafnaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They will definitely receive all of it. The way I typically solve this type of problem is by ensuring the data includes or even is keyed directly to the user's ID, so having like a document that has the user's ID as parse of the identifier, and then when the realtime database has data pushed, including the ID of the user that pushed it.