Open aqibnawazdev opened 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
try to use
const functions = require("firebase-functions"); functions.logger.error(error);
It should be as
https://github.com/firebase/snippets-web/blob/e74e8fd9591f70007a44c58580ff0f1fcd1c7959/snippets/firestore-next/test-firestore/get_all_users.js#L8-L13