I am using the new Cloud Firestore in Android. So I ran into this problem in firestore. I want to request a document containing an identifier in its array fields.
for example, I have a document with a field in firestore containing an array of integers, for example: 
Therefore, when I have the identifier 66940, I can get the document and other documents containing the identifier, without returning other documents that do not contain the identifier 66940.
Besides this approach, I can also use id (66940) to search for it in the document id. The format of my documents is as follows:
- 66940_88123
- 12323_66940
The idea is to return documents containing 66940 in their identifier. I read about the solution here , but I really don't understand how to implement it.
source share