I am using Firestore.
There is a field in the document that stores the reference ID.
I want to retrieve a document using its reference ID.
Currently, we are using Document from Reference, but if the reference ID is NULL, we get an error.
I allow the reference ID to be NULL.
How can I retrieve a document using a reference ID value that may contain NULLs?