-
Notifications
You must be signed in to change notification settings - Fork 3
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
$select should support /$count and ($count=true) for collection-valued structural properties #2046
$select should support /$count and ($count=true) for collection-valued structural properties #2046
Comments
We currently support $expand=navProp/$count to return just the count of the nav prop. It seems like we should. |
Proposal: Support the same /$count functionality for $select as we support for $expand. collectionProp/$count |
Resolved as proposed 2025-2-5 |
If the type contains a lot of properties, Is there any simple way to get all properties but for a certain collection properties, only get the number, so, we don't want to list all other properties within $select. For example, can we do like:
|
I believe the above would return all properties (including ColProp) plus the count of ColProp. In general, we don't have a way to except individual properties in the select (or expand) list. We could introduce something like -propName, so you could do $select=*,-ColProp, ColProp/$count. |
2025-2-12: We discussed omitting the counted properties. If we want to omit the counted property, we should do it through a generic method that omits properties. Such a mechanism should be handled separate from this issue. There did not seem to be an expressed need in pursuing such a mechanism at this time. |
No description provided.
The text was updated successfully, but these errors were encountered: