Skip to content

Commit

Permalink
docs: Fix sample for using Compiled Query for WriteArray with Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackclaws authored Jan 12, 2024
1 parent b1177d8 commit 7d356ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IssueService/Controllers/IssueController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public Task Get2(Guid issueId, [FromServices] IQuerySession session, [FromQuery]
public Task Get3(Guid issueId, [FromServices] IQuerySession session, [FromQuery] string? sc = null)

Check warning on line 74 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 74 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 74 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
return sc is null
? session.Query<Issue>().Where(x => x.Id == issueId)
? session.Query<Issue>(new IssueById() { Id = issueId })

Check failure on line 77 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 77 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 77 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 77 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 77 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 77 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'
.WriteSingle(HttpContext)
: session.Query<Issue>().Where(x => x.Id == issueId)
: session.Query<Issue>(new IssueById() { Id = issueId })

Check failure on line 79 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 79 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 79 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 79 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 79 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'

Check failure on line 79 in src/IssueService/Controllers/IssueController.cs

View workflow job for this annotation

GitHub Actions / build

Argument 1: cannot convert from 'IssueService.Controllers.IssueById' to 'string'
.WriteSingle(HttpContext, onFoundStatus: int.Parse(sc));
}

Expand Down

0 comments on commit 7d356ef

Please sign in to comment.