I have a collection whose document id got changed.
Now when I fetch that document using this piece of code:
const doc = database.collection(col).doc(col.documentId as string);
I get this error: Error: 5 NOT_FOUND:
But if I use the where clause and provide the same col.documentId, I am able to fetch that document.
Please help here.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/zmyXjp5
Comments
Post a Comment