To minimise unnecessary actions it is always good to see actual requests to the server.
It is easy to do with firebase realtime database, since it opens websocket and it can be viewed in chrome dev tools.
Firestore seems to be different. It's not clear what type of communication with the server it uses. I can not see anything related to my data while looking at websockets, seems it is using XHR requests, but by looking at this requests they have pretty weird data returned to me, for example it receives this response in the body:
10
[1,128,7]
..while I see that I loaded data.
So how to see my requests to firestore?
The wire protocol for Cloud Firestore is based on gRPC, which is indeed a lot harder to troubleshoot than the websockets that the Realtime Database uses.
The best way I've found so far is to enable debug logging with:
firebase.firestore.setLogLevel('debug');
Once you do that, the debug output looks similar (for subjective values of "similar") to what you'd get from debug logging on the Realtime Database.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With