Is there any way to query a document so that any field is equal to some value?
eg:
collection of documents named chats
. Each document has two fields - user1
and user2
. Can I get all the documents where user1
or user2
is 2?
where('field', 'in', ['value1', 'value2'])
won't work for this because that can only check one field against multiple values. right?