firebase / snippets-web

Web snippets for firebase.google.com
Apache License 2.0
752 stars 241 forks source link

Incorrect syntax, Not working properly. wrong way to console #365

Open aqibnawazdev opened 8 months ago

aqibnawazdev commented 8 months ago

It should be as

 console.log(doc.id,  "=>",  doc.data())

https://github.com/firebase/snippets-web/blob/e74e8fd9591f70007a44c58580ff0f1fcd1c7959/snippets/firestore-next/test-firestore/get_all_users.js#L8-L13

ahmerafzal commented 4 months ago

try to use

const functions = require("firebase-functions");
functions.logger.error(error);