skip to Main Content

Firebase – How to unify this two instructions?

Is it possible to unify in a single instruction these two Firestore document set/update? await batchArray[batchIndex].set(finref, doc2.data()); await batchArray[batchIndex].update(finref, {"esito" : 1, "timestamp": currentTime}); Where "finref" is a document reference and doc2 is a DocumentSnapshot

VIEW QUESTION

Load a single data from a document in mongoDB

How can I find only the "hotels" property? Data in MongoDB- [ { "picture": "https://d.bcb.ic/dKkqr2da/lalkhal.jpg", "name": "Lalakhal", "about": "Lalakhal is....", "latitude": 25.1048, "longitude": 92.1770, "hotels": [{}, {}, {}] }, { "picture": "https://d.bcb.ic/dKkqr2da/lalkhal.jpg", "name": "Lalakhal", "about": "Lalakhal is....", "latitude": 25.1048, "longitude":…

VIEW QUESTION

Cannot install nodejs on ubuntu 22.04

im trying to install NodeJS LTS on my vm. But ubuntu (22.04) throws an error Error: root@web-server ~/server# sudo apt list nodejs Listing... Done nodejs/unknown 18.12.0-deb-1nodesource1 arm64 N: There is 1 additional version. Please use the '-a' switch to see…

VIEW QUESTION
Back To Top
Search