Azure / Azure/data-api-builder

[Enh]: Add REST keyword `$count`

Open
#3,218 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.