I have a web app made mainly with Vue JS calling a Firestore database to display data, along with Google Cloud Functions that handle automatic mechanisms.
My question is quite simple, can I use the Firebase Admin SDK on my web app?
Currently in my web app I am using this code to connect the DB:
import firebase from 'firebase';
import '@firebase/auth';
import '@firebase/firestore';
...
// Initialize Firebase
const firebaseApp = firebase.initializeApp(config); // const app = initializeApp(config);
this.database = firebaseApp.firestore();
I would like to be able to use the select
keyword for the Firestore database requests in order to select only the fields I want to retrieve from a Collection. But that keyword is not available on my web app through that implementation. So I wonder if it is reserved to Google Functions (even though I don't see why it is not available everywhere).