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)
This PR will change how
FirebaseResource
is structured as well as these changes will refelct inFirebaseDatabaseReference
.FirebaseResource
now has akey
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 theupdate
function inFirebaseDatabaseReference
will internally add it inside the request path, so that to update a document, the arguments will just beupdate(resource.key, new_data)