File tree 6 files changed +12
-14
lines changed
DataLoaderWithEFCore/DataLoaderWithEFCore
SubscriptionsGraphQLServer/SubscriptionExample/SubscriptionExample
test/GraphQL.Conventions.Tests
6 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ public async Task<Movie[]> GetMovies()
31
31
32
32
public async Task < Movie > UpdateMovieTitle ( Guid id , string newTitle )
33
33
{
34
- var movie = await FindMovie ( id ) ;
35
- if ( movie == null )
36
- throw new InvalidOperationException ( $ "Movie with id { id } not found") ;
34
+ var movie = await FindMovie ( id ) ?? throw new InvalidOperationException ( $ "Movie with id { id } not found") ;
37
35
38
36
movie . Title = newTitle ;
39
37
_context . Movies . Update ( movie ) ;
Original file line number Diff line number Diff line change 15
15
<ItemGroup >
16
16
<PackageReference Include =" AutoMapper" Version =" 11.0.1" />
17
17
<PackageReference Include =" AutoMapper.Extensions.Microsoft.DependencyInjection" Version =" 11.0.0" />
18
- <PackageReference Include =" GraphQL.DataLoader" Version =" 7.4.1 " />
19
- <PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.1.1 " />
18
+ <PackageReference Include =" GraphQL.DataLoader" Version =" 7.7.2 " />
19
+ <PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.6.0 " />
20
20
<ProjectReference Include =" ../../../src/GraphQL.Conventions/GraphQL.Conventions.csproj" />
21
21
<PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 6.0.6" />
22
22
<PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 6.0.6" />
Original file line number Diff line number Diff line change 11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
14
- <PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.1.1 " />
14
+ <PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.6.0 " />
15
15
</ItemGroup >
16
16
17
17
<ItemGroup >
Original file line number Diff line number Diff line change 9
9
</PropertyGroup >
10
10
11
11
<ItemGroup >
12
- <PackageReference Include =" GraphQL.SystemTextJson" Version =" 7.4.1 " />
13
- <PackageReference Include =" GraphQL.MicrosoftDI" Version =" 7.4.1 " />
14
- <PackageReference Include =" GraphQL.Server.Transports.AspNetCore" Version =" 7.1.1 " />
15
- <PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.1.1 " />
12
+ <PackageReference Include =" GraphQL.SystemTextJson" Version =" 7.7.2 " />
13
+ <PackageReference Include =" GraphQL.MicrosoftDI" Version =" 7.7.2 " />
14
+ <PackageReference Include =" GraphQL.Server.Transports.AspNetCore" Version =" 7.6.0 " />
15
+ <PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.6.0 " />
16
16
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.16.1" />
17
17
<PackageReference Include =" System.Reactive" Version =" 5.0.0" />
18
18
</ItemGroup >
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<Description >GraphQL Conventions for .NET</Description >
5
- <VersionPrefix >7.2.1 -preview</VersionPrefix >
5
+ <VersionPrefix >7.4.0 -preview</VersionPrefix >
6
6
<Authors >Tommy Lillehagen</Authors >
7
7
<TargetFrameworks >net6.0;netstandard2.0</TargetFrameworks >
8
8
<LangVersion >9.0</LangVersion >
27
27
</PropertyGroup >
28
28
29
29
<ItemGroup >
30
- <PackageReference Include =" GraphQL.DataLoader" Version =" 7.4.1 " />
31
- <PackageReference Include =" GraphQL.NewtonsoftJson" Version =" 7.4.1 " />
30
+ <PackageReference Include =" GraphQL.DataLoader" Version =" 7.7.2 " />
31
+ <PackageReference Include =" GraphQL.NewtonsoftJson" Version =" 7.7.2 " />
32
32
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.1.1" PrivateAssets =" All" />
33
33
</ItemGroup >
34
34
Original file line number Diff line number Diff line change 12
12
</PropertyGroup >
13
13
14
14
<ItemGroup >
15
- <PackageReference Include =" GraphQL.DataLoader" Version =" 7.4.1 " />
15
+ <PackageReference Include =" GraphQL.DataLoader" Version =" 7.7.2 " />
16
16
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.5.0" />
17
17
<PackageReference Include =" System.Reactive" Version =" 5.0.0" />
18
18
<PackageReference Include =" xunit" Version =" 2.4.2" />
You can’t perform that action at this time.
0 commit comments