-
Notifications
You must be signed in to change notification settings - Fork 1.6k
FR: Query in
operator
#549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for writing in. This is something we're looking at doing. Unfortunately I can't promise when it's going to happen, nor can I really promise if the design we land on will necessarily exactly match what you're asking for. This specific use case (array of group members) is a specific requirement for adding this. |
While we're still very interested in this feature, there's little value in tracking this separately for just iOS. The canonical issue for this is firebase/firebase-js-sdk#321. I'll close this one as a duplicate. |
@wilhuff this is https://firebase.googleblog.com/2018/08/better-arrays-in-cloud-firestore.html |
I had been using this, do I need the
|
You can't use For queries we populate the You want this rule:
|
It would be really really nice if we could query this in this SDK. Currently I'm having to store
room
references in my/users/
DocumentsFirestore Data Model for Chat app:
Server-side Rules:
allow read, write: if request.auth.uid in resource.data.users;
Proposed:
roomsRef.where("users", "in", currentUserId)
The text was updated successfully, but these errors were encountered: