Skip to content

Commit

Permalink
Bump GraphQL.NET to latest 7.7.2 (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
clangelov authored Jan 11, 2024
1 parent 482b1d1 commit f6cbc6e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public async Task<Movie[]> GetMovies()

public async Task<Movie> UpdateMovieTitle(Guid id, string newTitle)
{
var movie = await FindMovie(id);
if (movie == null)
throw new InvalidOperationException($"Movie with id {id} not found");
var movie = await FindMovie(id) ?? throw new InvalidOperationException($"Movie with id {id} not found");

movie.Title = newTitle;
_context.Movies.Update(movie);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<ItemGroup>
<PackageReference Include="AutoMapper" Version="11.0.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="GraphQL.DataLoader" Version="7.4.1" />
<PackageReference Include="GraphQL.Server.Ui.Playground" Version="7.1.1" />
<PackageReference Include="GraphQL.DataLoader" Version="7.7.2" />
<PackageReference Include="GraphQL.Server.Ui.Playground" Version="7.6.0" />
<ProjectReference Include="../../../src/GraphQL.Conventions/GraphQL.Conventions.csproj" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.6" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.6" />
Expand Down
2 changes: 1 addition & 1 deletion samples/SimpleWebApp/SimpleWebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="GraphQL.Server.Ui.Playground" Version="7.1.1" />
<PackageReference Include="GraphQL.Server.Ui.Playground" Version="7.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GraphQL.SystemTextJson" Version="7.4.1" />
<PackageReference Include="GraphQL.MicrosoftDI" Version="7.4.1" />
<PackageReference Include="GraphQL.Server.Transports.AspNetCore" Version="7.1.1" />
<PackageReference Include="GraphQL.Server.Ui.Playground" Version="7.1.1" />
<PackageReference Include="GraphQL.SystemTextJson" Version="7.7.2" />
<PackageReference Include="GraphQL.MicrosoftDI" Version="7.7.2" />
<PackageReference Include="GraphQL.Server.Transports.AspNetCore" Version="7.6.0" />
<PackageReference Include="GraphQL.Server.Ui.Playground" Version="7.6.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.16.1" />
<PackageReference Include="System.Reactive" Version="5.0.0" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/GraphQL.Conventions/GraphQL.Conventions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>GraphQL Conventions for .NET</Description>
<VersionPrefix>7.2.1-preview</VersionPrefix>
<VersionPrefix>7.4.0-preview</VersionPrefix>
<Authors>Tommy Lillehagen</Authors>
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
Expand All @@ -27,8 +27,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GraphQL.DataLoader" Version="7.4.1" />
<PackageReference Include="GraphQL.NewtonsoftJson" Version="7.4.1" />
<PackageReference Include="GraphQL.DataLoader" Version="7.7.2" />
<PackageReference Include="GraphQL.NewtonsoftJson" Version="7.7.2" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GraphQL.DataLoader" Version="7.4.1" />
<PackageReference Include="GraphQL.DataLoader" Version="7.7.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="System.Reactive" Version="5.0.0" />
<PackageReference Include="xunit" Version="2.4.2" />
Expand Down

0 comments on commit f6cbc6e

Please sign in to comment.