Skip to content

Commit 029d9ee

Browse files
Merge branch 'feature/value-object' of github.com:AntonioFalcao/Dotnet5.GraphQL3.WebApplication into feature/value-object
2 parents 7f6060a + 9914eac commit 029d9ee

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<!--GraphQL-->
1919
<GraphQL_Server_Version>5.0.1</GraphQL_Server_Version>
2020
<GraphQL_Client_Version>3.2.3</GraphQL_Client_Version>
21-
<GraphQL_Version>4.2.0</GraphQL_Version>
21+
<GraphQL_Version>4.3.0</GraphQL_Version>
2222

2323
<!--AutoMapper-->
2424
<AutoMapper_DependencyInjection_Version>8.1.1</AutoMapper_DependencyInjection_Version>
@@ -31,7 +31,7 @@
3131
<HealthChecks_Version>5.0.1</HealthChecks_Version>
3232

3333
<!--Others-->
34-
<FluentValidation_Version>10.0.2</FluentValidation_Version>
34+
<FluentValidation_Version>10.0.4</FluentValidation_Version>
3535
<Scrutor_Version>3.3.0</Scrutor_Version>
3636

3737
</PropertyGroup>

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -175,22 +175,22 @@ networks:
175175
```
176176
### GraphQL Playground
177177
178-
By default **Playground** respond at `http://localhost:5000/ui/playground` but is possible configure the host and many others details in [`../....WebAPI/Graphs/Extensions/DependencyInjection/ApplicationBuilderExtensions.cs`](./src/Dotnet6.GraphQL4.Store.WebAPI/Graphs/Extensions/DependencyInjection/ApplicationBuilderExtensions.cs)
178+
By default **Playground** respond at `http://localhost:5000/ui/playground` but is possible configure the host and many others details in [`../DependencyInjection/Extensions/ApplicationBuilderExtensions.cs`](./src/Dotnet6.GraphQL4.Store.WebAPI/DependencyInjection/Extensions/ApplicationBuilderExtensions.cs)
179179

180180
```c#
181181
app.UseGraphQLPlayground(
182-
new GraphQLPlaygroundOptions
183-
{
184-
Path = "/ui/playground",
185-
BetaUpdates = true,
186-
RequestCredentials = RequestCredentials.Omit,
187-
HideTracingResponse = false,
188-
EditorCursorShape = EditorCursorShape.Line,
189-
EditorTheme = EditorTheme.Dark,
190-
EditorFontSize = 14,
191-
EditorReuseHeaders = true,
192-
EditorFontFamily = "JetBrains Mono"
193-
});
182+
options: new()
183+
{
184+
BetaUpdates = true,
185+
RequestCredentials = RequestCredentials.Omit,
186+
HideTracingResponse = false,
187+
EditorCursorShape = EditorCursorShape.Line,
188+
EditorTheme = EditorTheme.Dark,
189+
EditorFontSize = 14,
190+
EditorReuseHeaders = true,
191+
EditorFontFamily = "JetBrains Mono"
192+
},
193+
path: "/ui/playground");
194194
```
195195

196196
### Health checks
@@ -252,8 +252,8 @@ The implementation of the `UnitOfWork` gives support to the `ExecutionStrategy`
252252
```c#
253253
public Task<Review> AddReviewAsync(ReviewModel reviewModel, CancellationToken cancellationToken)
254254
{
255-
return UnitOfWork.ExecuteInTransactionAsync(
256-
operationAsync: async ct => // Func<CancellationToken, Task<TResult>>
255+
return UnitOfWork.ExecuteInTransactionScopeAsync(
256+
operationAsync: async ct =>
257257
{
258258
var product = await Repository.GetByIdAsync(
259259
id: reviewModel.ProductId,
@@ -266,8 +266,8 @@ public Task<Review> AddReviewAsync(ReviewModel reviewModel, CancellationToken ca
266266
await OnEditAsync(product, ct);
267267
return review;
268268
},
269-
condition: _ => NotificationContext.AllValidAsync, // Func<CancellationToken, Task<bool>>
270-
cancellationToken: cancellationToken);
269+
condition: _ => NotificationContext.AllValidAsync,
270+
cancellationToken: cancellationToken);
271271
}
272272
```
273273

0 commit comments

Comments
 (0)