Skip to content

Commit

Permalink
Upgrade to HotChocolate 14
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTTY committed Sep 25, 2024
1 parent 775dbef commit a0b6ce5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions src/server/RobinTTY.PersonalFinanceDashboard.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@
// HotChocolate GraphQL Setup
builder.Services
.AddGraphQLServer()
// TODO: Document what the different extensions methods do
.AddTypes()
.AddMutationConventions()
.RegisterService<AccountRepository>(ServiceKind.Resolver)
.RegisterService<AuthenticationRequestRepository>(ServiceKind.Resolver)
.RegisterService<BankingInstitutionRepository>(ServiceKind.Resolver)
.RegisterService<TransactionRepository>(ServiceKind.Resolver);
// AddQueryConventions: https://www.youtube.com/watch?v=yoW2Mt6C0Cg
.AddQueryConventions()
.AddMutationConventions();

var app = builder.Build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

<ItemGroup>
<PackageReference Include="Bogus" Version="35.6.1" />
<PackageReference Include="HotChocolate.AspNetCore" Version="13.9.12" />
<PackageReference Include="HotChocolate.Data.EntityFramework" Version="13.9.12" />
<PackageReference Include="HotChocolate.Types.Analyzers" Version="13.9.12">
<PackageReference Include="HotChocolate.AspNetCore" Version="14.0.0-rc.2" />
<PackageReference Include="HotChocolate.Data.EntityFramework" Version="14.0.0-rc.2" />
<PackageReference Include="HotChocolate.Types.Analyzers" Version="14.0.0-rc.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit a0b6ce5

Please sign in to comment.