75

Is there any UI Console where I can query the Firebase Database?? Basically I wish to query the data just like we can query other databases using UI

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
mohan mishra
  • 1,158
  • 2
  • 14
  • 21

3 Answers3

28

The Firebase Console has built-in support for sorting and filtering the data in a Firestore collection. Click the little filter icon at the top of the collection (next to the overflow menu ).

Many developers also use a local node.js script/REPL (such as in this video tutorial explaining Firebase Queries) or set up a jsfiddle/jsbin (such as in this question).

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Isn't the web (jsbin) solution a security breach? Using the jsbin logic (web) allows anybody to get the credentials of the firebase db and view the entire database contents. – user2078023 Aug 21 '17 at 08:43
  • 1
    The configuration data in the jsbin are just project identifiers: they identify a Firebase project on the Google servers. They are not user credentials, which identify a user. You can share the configuration data, but still mark the database as only accessible to specific users. See https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public – Frank van Puffelen Aug 21 '17 at 09:41
  • 1
    Currently the firebase console for firestore supports this feature.It supports sorting and applying filters to listing of a collection. – Vasco Dec 11 '18 at 13:27
  • Good point. I added that. – Frank van Puffelen Dec 11 '18 at 14:11
17

EDIT: As mentioned in the comments, the docs link is currently dead. This project might be abandoned. Please try the next answer.

EDIT 2: I removed links to the software and docs since it looked like some phishing website took over the domain.

Original answer:

Check out Firebase Admin. It's a UI for Linux, OSX and Windows and it has a Query tab that lets you experiment with queries.

Read the docs on how to create the private key the app needs to connect to your project.

Konrad Kiss
  • 6,856
  • 1
  • 20
  • 21
13

I found and have been using Firestation. Can be used on windows, mac, and linux. I would say to check it out. You can run sql queries against your firebase database.

You can view the source here.

Community
  • 1
  • 1
kelsheikh
  • 1,278
  • 3
  • 17
  • 37