File tree Expand file tree Collapse file tree 5 files changed +14
-11
lines changed Expand file tree Collapse file tree 5 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net6 .0</TargetFramework >
5
5
6
6
<IsPackable >false</IsPackable >
7
7
</PropertyGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net6 .0</TargetFramework >
5
5
<RootNamespace >ConferencePlanner.GraphQL</RootNamespace >
6
6
<Nullable >enable</Nullable >
7
7
</PropertyGroup >
12
12
</PropertyGroup >
13
13
14
14
<ItemGroup >
15
- <PackageReference Include =" HotChocolate.AspNetCore" Version =" 12.0.0-preview.30 " />
16
- <PackageReference Include =" HotChocolate.Data" Version =" 12.0.0-preview.30 " />
17
- <PackageReference Include =" HotChocolate.PersistedQueries.FileSystem" Version =" 12.0.0-preview.30 " />
15
+ <PackageReference Include =" HotChocolate.AspNetCore" Version =" 12.0.0-preview.33 " />
16
+ <PackageReference Include =" HotChocolate.Data" Version =" 12.0.0-preview.33 " />
17
+ <PackageReference Include =" HotChocolate.PersistedQueries.FileSystem" Version =" 12.0.0-preview.33 " />
18
18
<PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 5.0.0" />
19
19
<PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 5.0.0" >
20
20
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
Original file line number Diff line number Diff line change 15
15
using HotChocolate ;
16
16
using HotChocolate . Types ;
17
17
using HotChocolate . Resolvers ;
18
+ using System . Diagnostics ;
18
19
19
20
namespace ConferencePlanner . GraphQL
20
21
{
@@ -40,10 +41,7 @@ public void ConfigureServices(IServiceCollection services)
40
41
. AddGraphQLServer ( )
41
42
42
43
// Next we add the types to our schema.
43
- . AddQueryType ( d => d
44
- . Name ( OperationTypeNames . Query )
45
- . Field ( "version" )
46
- . Resolve ( typeof ( IResolverContext ) . Assembly . GetName ( ) . Version ? . ToString ( ) ) )
44
+ . AddQueryType ( )
47
45
. AddTypeExtension < AttendeeQueries > ( )
48
46
. AddTypeExtension < SessionQueries > ( )
49
47
. AddTypeExtension < SpeakerQueries > ( )
Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
- FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
2
+ FROM mcr.microsoft.com/dotnet/6.0.100-preview.7-alpine3.13-amd64 AS build-env
3
3
WORKDIR /app
4
4
5
5
# Copy csproj and restore as distinct layers
@@ -8,7 +8,7 @@ RUN dotnet restore
8
8
RUN dotnet publish -c Release -o out
9
9
10
10
# Build runtime image
11
- FROM mcr.microsoft.com/dotnet/aspnet:5.0
11
+ FROM mcr.microsoft.com/dotnet/aspnet:6.0.0-preview.7-alpine3.13-amd64
12
12
WORKDIR /app
13
13
COPY --from=build-env /app/out .
14
14
ENTRYPOINT ["dotnet", "GraphQL.dll"]
Original file line number Diff line number Diff line change
1
+ {
2
+ "sdk" : {
3
+ "version" : " 6.0.100-preview.7.21379.14"
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments