the const x returns undefined but the code doesn't run and console log errors 'Could not find Document in "weatherDb" collection with criteria: {"city":"city"}'
const x = db.collection('weatherDb').doc({ city: city}).get() if( await x == 'undefined') { console.log('document does not exist') }
the const x returns undefined but the code doesn't run and console log errors 'Could not find Document in "weatherDb" collection with criteria: {"city":"city"}'
const x = db.collection('weatherDb').doc({ city: city}).get() if( await x == 'undefined') { console.log('document does not exist') }