chore: firebase ability to use Realtime Database
Hi! First time here,
The problem:
No access to Realtime Database API from the Firebase Admin SDK in the NestJS App.
The solution:
- Added
databaseattribute toFirebaseAdmininterface - Adjust
createInstancesfunction to fulfill new interface
Notes:
- previously there is a
dbattribute that provides access to firestore (which is confused me..) - seems that there is confusion with
dbanddatabaseattributes now - I guess to have API more consistent, probably better to rename
db->firestore. But it leads to breaking changes Like:
firestore: firebaseAdmin.firestore.Firestore;
WDYT?
thank you pr :) plz review CI results
I guess to have API more consistent, probably better to rename db -> firestore
Good idea, since it is a BREAKING CHANGE, I will do it when I release version 9
@9renpoto Any update on this ?
We are preparing for the release of v9 here. We would be happy to have you test through this PR, but if it seems difficult, we will consider cherry-pick.
Thanks for the update. I can see if I could run some test and let you know.