Skip to content

Getting dictionary of all data in a database reference #147

Answered by WolfgangSenff
macktns asked this question in Q&A
Discussion options

You must be logged in to vote

Can't say with certainty, but my immediate thought is that you haven't actually waited for it to pull data back. You should only be calling things after the reference has completed initializing. More importantly, the example you're looking at is for the part of the chat app which pushes the data, not the one which listens for it. (It will listen for it, but in this case it is ignored.) What you're looking for regarding what to do is: https://github.com/GodotNuts/FirebaseDemo-Chat/blob/main/Chat.gd#L15 - No need to do a get_data if you're reading the data in the new_data_update signal which returns you the data. This one will return the entire set of data at the very beginning for you as w…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@macktns
Comment options

@macktns
Comment options

Answer selected by macktns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants