I'm an Android developer and recently I've started working on a project based on firebase cloud functions and firestore database. I'm writing an HTTP trigger function that will take two parameters and compare that parameter value with the firestore data value and if the value matches then return a response of true or else false.
Duplicate Question:
Yes, there are some question already asked related to mine but they are not similar:
Firebase Docs says:
Cloud Firestore supports create, update, delete, and write events
I want to read firestore value from HTTP trigger.
What I have tried:
exports.userData = functions.https.onRequest((req, res) => {
const user = req.query.user;
const pass = req.query.pass;
});
I'm pretty much stuck at this part. Any help will be greatly appreciated. Thanks
P.S. I have very limited knowledge related to JS/TypeScript/NodeJS