Azure / Azure/data-api-builder
[Enh]: Add REST keyword `$count`
Open
2.x
needs discussion
rest
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 370
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 9
Description
## What?
`/Products?$filter=Price gt 50&$count=true`
## Why?
Provide simple aggregate for queries.
## How?
```json
{
"@odata.count": 124,
"value": [ ...items... ]
}
```
Contributor guide
Research direction
Start by locating the REST endpoint handling for `/Products?$filter=Price gt 50&$count=true` and the existing `$filter` query processing. Trace how query results are returned, then verify that a request with `$count=true` produces an `@odata.count` value alongside the `value` array, as shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100