GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
530 stars 76 forks source link

[BUG] Incorrect and incomplete Wiki Information for Realtime Database #313

Closed Kontrano closed 1 year ago

Kontrano commented 1 year ago

Describe the bug The wiki information on the Realtime Database implementation is outdated/incomplete namely the filter behavior as well as missing the information about the push and update commands.

To Reproduce Implement the filter command from the wiki, namely this one: var db_ref = Firebase.Database.get_database_reference("path_to_position_in_database", { Firebase.Database.LIMIT_TO_LAST : 10 })

Expected behavior Only receive the last 10 data elements. but results in an error

As discussed with KyleTheCoder the command should be var db_ref = Firebase.Database.get_database_reference("path_to_position_in_database", { FirebaseDatabaseReference.LIMIT_TO_LAST : "10" })

In addition, the wiki is missing an example of the .push() and .update() commands, they can currently be found in the Chat Demo but should probably be included in the wiki.

Environment:

Kontrano commented 1 year ago

As requested here is the link for that Filters seem to not be supported via the REST API image

Source: https://firebase.google.com/docs/database/rest/retrieve-data

WolfgangSenff commented 1 year ago

Fixed. Thanks!