snippets-web
snippets-web copied to clipboard
Incorrect syntax, Not working properly. wrong way to console
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
try to use
const functions = require("firebase-functions");
functions.logger.error(error);