I am currently dealing with a document that contains an array field storing references to other documents.
Upon fetching the document data and verifying if a document reference exists within the array, I consistently receive a result indicating that it is not present in the array, even when it actually is.
//The following code snippet returns 'false'
console.log([db.doc('collectionName/docId')].includes(db.doc('collectionName/docId')))
console.log(db.doc('collectionName/docId') === db.doc('collectionName/docId'))
It seems like each document reference has its own unique characteristic. In light of this, how can I determine whether a specific document reference exists within an array of document references?