GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
554 stars 79 forks source link

changed key value in database reference #77

Closed fenix-hub closed 3 years ago

fenix-hub commented 3 years ago

This PR will change how FirebaseResource is structured as well as these changes will refelct in FirebaseDatabaseReference.

FirebaseResource now has a key value which is internally modified, removing the first / and returning just the document name. This will let users have directly returned the document name without having the first trail simbol. Since the path character is removed from the key, to the update function in FirebaseDatabaseReference will internally add it inside the request path, so that to update a document, the arguments will just be update(resource.key, new_data)