Skip to content
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

How to limit query to just few fields? #41

Open
vladaman opened this issue Mar 22, 2022 · 0 comments
Open

How to limit query to just few fields? #41

vladaman opened this issue Mar 22, 2022 · 0 comments

Comments

@vladaman
Copy link

We have a collection, let's say "Users" and we'd like any user to be able to query list of all user names but not other fields. In firestore we can set restriction rule to specific fields but running query just queries all fields.

We get an error:

Unhandled Exception: [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant