I've got currently one collection called restaurants and each document in it has an owner (string) and a workers (string[]) fields.
Is there any way I can make an OR operation requesting the owner field to be an uid or the workers field containing the uid. Something like this:
document.owner === UID || UID in document.workers
I hope there's a way to solve this without making 2 different read operations.
Thanks for replying and please, ask me if I haven't explained my problem well.