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.
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: