I need to convert all the document IDs into an array in order to perform a query using array.includes()
.
This is the code I am currently using -
this.db.collection('camps', ref => ref.where('id', '==', "fxvb95"))
.snapshotChanges().subscribe(data => {
data.forEach(doc => {
const y = doc.payload.doc.data()['altUID'];
console.log(y)
});
The following results are displayed in the log:
exampleUID1
exampleUID2
How can I combine these values into a single value or an array?