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

$top and $skip with expressions #97

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

HeikoTheissen
Copy link
Contributor

@HeikoTheissen HeikoTheissen commented May 5, 2023

Allow $top and $skip with "collection expressions" defined like here:

; Expressions evaluable on a collection
collectionExpr = commonExpr ; but where every firstMemberExpr must be a currCollectionExpr

Employees?$top=Age

would not be allowed, because Age cannot be evaluated on a collection of Employees. But

Managers?$expand=Employees($top=$it/Age)

would be allowed, since $it/Age is the age of one instance of Managers.

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

Successfully merging this pull request may close these issues.

2 participants