Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

[firebase_database]: connect to different database of app #401

Open
deepak786 opened this issue Sep 7, 2021 · 0 comments
Open

[firebase_database]: connect to different database of app #401

deepak786 opened this issue Sep 7, 2021 · 0 comments

Comments

@deepak786
Copy link

How can I connect to another database of the same app?

I can get the database instance with the below code but it always connects to the default database.

var app = fb.initializeApp();
fb.database(app); // this will connect to default database of the app.

https://firebase.google.com/docs/reference/js/database.md#getdatabase

@deepak786 deepak786 changed the title connect to different database of app [firebase_database]: connect to different database of app Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant