I have been using Admin SDK Transaction on Firestore for a while, I know Firestore locks documents during transaction. But I am not sure it works as same as on Realtime Database because offical document keep bring me to the client side API page, Or just because it’s no difference between client sdk and admin sdk on realtime database. Answer
Tag: firebase-admin
QuerySnapshot.empty causes a promise rejection error
I have a back-end using firebase-admin and express to allow post requests from the client to the server to make changes to the firestore I have that contains stuff like user data (this is a test and not a real product). I want to check if a document already exists so a user cannot register with that username again. I
Upload into specific folder Firebase Storage NodeJS?
Hey I have found out how to upload into the firebase storage: As you can see with my bucket.upload function I can upload to firebase storage but it gets uploaded into the root folder and I want to put it under /foodImages/myfile.png for example Any ideas ? Answer Actually Google Cloud Storage does not have genuine “folders”. In the Cloud
Firebase Cloud Function listUser get 1000+ users
I want to modify the database value that has the uid of all users as the key after getting uid through listUser(), but listUser() has 1000 max. If there is a good way to get uid of all users, please let me know Answer The Firebase Admin SDK supports pagination to cycle through all the registered user accounts. Follow the