-
Notifications
You must be signed in to change notification settings - Fork 961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In emulators, realtime database, firestore write (via emulator functions) is showing success but can't see data in the firebase console #1658
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
@hkchakladar that's the intended behavior because it is writing back to the Database Emulator, which can't be seen by the console. You can view the data by going to: Make sure to replace PORT with the port the RTDB emulator is using and YOUR_PROJECT_ID with your Firebase project ID. |
Okay. What about firestore? And is there any way to write back to production database? |
@hkchakladar for Firestore there's no easy way to view data in your browser, we're working on it! If you want to write back to production, you should not run the DB emulators. So |
Closing this issue as I believe the question is now answered. |
i am hitting my head to figure out how to make my functions talk to emulated database ... all my functions are simply talking to database in the cloud. I want to debug / develop my application locally so that i can speed up the process. I have a huge list of APIs and they store/fetch the information from the realtime database. I am not sure how i can setup a local development environment with firebase cli so that i can work with the realtime database and development data locally. without even bothering on what is stored in the cloud database. |
@anantanandgupta Start the emulators by using |
@hkchakladar thanks it was helpful ... it is pointing to the local database now. Next is how to load the initial data (that to without triggering the db triggers (onCreate / onUpdate etc.)). If this is done ... my life is sorted ... my application i was all building on the real database all the time and it was really difficult to do something with the sample data in the live environment. |
@anantanandgupta that's a known feature request and you can track it here: Thanks for letting us know! |
thanks @samtstern but that thread seems to be only focusing on firestore db, is the realtime db also in the same scope? |
[REQUIRED] Environment info
firebase-tools: 7.3.2
Platform: Ubuntu
[REQUIRED] Test case
In emulator, I'm writing to realtime database and firestore, via emulator functions. The write shows success, but I can't see it's written to db (firestore, rtdb) in firebase console.
[REQUIRED] Steps to reproduce
Cloud functions:
[REQUIRED] Expected behavior
In firebase console, RTDB,
admin/singleTask/done
should be set to1
&&
in firestore,
col/doc1
should containkey: "val"
[REQUIRED] Actual behavior
Write is successfull in cloudfunctions, but not showing in console.
The text was updated successfully, but these errors were encountered: