-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Exclude child elements in query results #7030
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 this suggestion; initially discussed in Parse Forum. Would you want to open a PR and create a failing test, so that we can get started to fix this? The basic steps are:
If you need any guidance please let us know and we'll be glad to support. |
@cbaker6 Since you are already looking into exclude can you look into this one? |
As discussed in #7390 (comment), the PR for this issue seems to be mixed into PR #7242. I am glad to see the issue being addressed. Having said that, for future PRs we should try to keep distinct issues and corresponding distinct PRs, unless issues are so intertwined that they cannot be addressed separately. Otherwise PRs blow up in scope and we increase review times, risk of bugs, etc. |
🎉 This change has been released in version 5.0.0-beta.1 |
🎉 This change has been released in version 5.0.0 |
Is your feature request related to a problem? Please describe.
In parse server we can put parse objects to another parse object. And we can get them with include method.
We also select specific fields from child objects with select method.
But we cannot exclude fields from child object. Lets assume we have Book object. And author field is a pointer to a user. If I want to get author alongside with book object, user object is fully fetched. But If I want to exclude some sensitive fields such as email field, I can't do that. Exclude method only works for Book object. But User objects is ignored.
Describe the solution you'd like
We should be able to exclude unwanted fields from child objects. Here is an example code:
Describe alternatives you've considered
We can convert parse objects to JSON and we can delete the unwanted fields by manually. But this is useless if our main porpouse is save bandwidth costs.
The text was updated successfully, but these errors were encountered: