This is my first time using StackOverflow. Hope someone can help me out!
I am trying to write React-redux application and currently trying to integrate Firebase into the application. When I console.log a collectionReference object, the object name is called n for some reason, and the keys of the object seems to be gibberish, such as Ch, Hw, etc... I am not sure what is going on. Does anyone know console.log doesn't seem to give me information on my collection object? Is it because the data is somehow encrypted for security reasons? This is the method I wrote for concole.loging a collectionReference object.
export const addCollectionAndDocuments = (collectionKeys, objectsToAdd) => {
const collectionRef = firestore.collection(collectionKeys);
console.log(collectionRef);
};
This is the response I get.
n {qa: t, Hd: t, dw: t, firestore: t, Qa: null, …}
Cw: n {segments: Array(1), offset: 0, m: 1}
Hd: t {s: t, ignoreUndefinedProperties: false, serializer: Ft}
Qa: null
dw: t {path: n, collectionGroup: null, ds: Array(0), filters: Array(0), limit: null, …}
firestore: t {Bd: FirebaseAppImpl, qd: t, INTERNAL: {…}, qa: t, jd: "[DEFAULT]", …}
id: (...)
parent: (...)
path: (...)
qa: t {projectId: "shop-2b337", database: "(default)"}
__proto__: n
.get(),.where(), etc on the reference? What I'm saying is that while I'm certainly no firestore expert, I'm not seeing anything that suggests that something went wrong.