Skip to content

Commit

Permalink
Merge pull request #1768 from kfircs/patch-1
Browse files Browse the repository at this point in the history
adding failing response example in batch
  • Loading branch information
andrueastman authored Mar 27, 2023
2 parents 68e4514 + 0881afc commit 776861f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/upgrade-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,15 @@ var usersResponse = await batchResponseContent.GetResponseByIdAsync<UserCollecti
List<User> userList = usersResponse.Value;

```
Find failing responses
```cs
var responses = await result.GetResponsesAsync();
//all the responses are successfull?
var allReponsesSuccessFull = responses.Any( response => !response.Value.IsSuccessStatusCode);
//the responses which do not have a success code.
var failedResponses = responses.Where(response => !response.Value.IsSuccessStatusCode);
```


### Support for $count in request builders

Expand Down

0 comments on commit 776861f

Please sign in to comment.