File tree 7 files changed +22
-21
lines changed
DataLoaderWithEFCore/DataLoaderWithEFCore
SubscriptionsGraphQLServer/SubscriptionExample/SubscriptionExample
GraphQL.Conventions.Tests
SubscriptionExample.Tests
7 files changed +22
-21
lines changed Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Web" >
1
+ <Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net6.0</TargetFrameworks >
4
+ <TargetFrameworks >net6.0</TargetFrameworks >
5
5
<LangVersion >9.0</LangVersion >
6
6
</PropertyGroup >
7
-
7
+
8
8
<ItemGroup >
9
9
<Compile Remove =" wwwroot\**" />
10
10
<Content Remove =" wwwroot\**" />
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.2.0 " />
18
+ <PackageReference Include =" GraphQL.DataLoader" Version =" 7.4.1 " />
19
19
<PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.1.1" />
20
20
<ProjectReference Include =" ../../../src/GraphQL.Conventions/GraphQL.Conventions.csproj" />
21
21
<PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 6.0.6" />
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<TargetFramework >net7.0</TargetFramework >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.4.1 " />
11
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.5.0 " />
12
12
<PackageReference Include =" xunit" Version =" 2.4.2" />
13
13
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5" >
14
14
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
22
22
</ItemGroup >
23
23
24
24
<ItemGroup >
25
- <Using Include =" Xunit" />
25
+ <Using Include =" Xunit" />
26
26
</ItemGroup >
27
27
</Project >
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.2.0 " />
13
- <PackageReference Include =" GraphQL.MicrosoftDI" Version =" 7.2.0 " />
12
+ <PackageReference Include =" GraphQL.SystemTextJson" Version =" 7.4.1 " />
13
+ <PackageReference Include =" GraphQL.MicrosoftDI" Version =" 7.4.1 " />
14
14
<PackageReference Include =" GraphQL.Server.Transports.AspNetCore" Version =" 7.1.1" />
15
15
<PackageReference Include =" GraphQL.Server.Ui.Playground" Version =" 7.1.1" />
16
16
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.16.1" />
Original file line number Diff line number Diff line change @@ -86,10 +86,12 @@ private IObjectGraphType DeriveOperationType(GraphTypeInfo typeInfo) =>
86
86
87
87
private FieldType DeriveField ( GraphFieldInfo fieldInfo )
88
88
{
89
+ bool resolvable = fieldInfo . DeclaringType . IsOutputType && ! fieldInfo . DeclaringType . IsInterfaceType ;
90
+
89
91
if ( fieldInfo . Type . IsObservable )
90
92
{
91
- var resolver = FieldResolverFactory ( fieldInfo ) ;
92
- var streamResolver = new EventStreamResolver ( resolver ) ;
93
+ var resolver = resolvable ? FieldResolverFactory ( fieldInfo ) : null ;
94
+ var streamResolver = resolvable ? new EventStreamResolver ( resolver ) : null ;
93
95
return new FieldType
94
96
{
95
97
Name = fieldInfo . Name ,
@@ -110,7 +112,7 @@ private FieldType DeriveField(GraphFieldInfo fieldInfo)
110
112
DefaultValue = fieldInfo . DefaultValue ,
111
113
Type = GetType ( fieldInfo . Type ) ,
112
114
Arguments = new QueryArguments ( fieldInfo . Arguments . Where ( arg => ! arg . IsInjected ) . Select ( DeriveArgument ) ) ,
113
- Resolver = FieldResolverFactory ( fieldInfo ) ,
115
+ Resolver = resolvable ? FieldResolverFactory ( fieldInfo ) : null ,
114
116
} ;
115
117
}
116
118
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.0 -preview</VersionPrefix >
5
+ <VersionPrefix >7.2.1 -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.2.0 " />
31
- <PackageReference Include =" GraphQL.NewtonsoftJson" Version =" 7.2.0 " />
30
+ <PackageReference Include =" GraphQL.DataLoader" Version =" 7.4.1 " />
31
+ <PackageReference Include =" GraphQL.NewtonsoftJson" Version =" 7.4.1 " />
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.2.0" />
16
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.2.0" />
17
- <PackageReference Include =" Microsoft.TestPlatform.TestHost" Version =" 17.2.0" />
15
+ <PackageReference Include =" GraphQL.DataLoader" Version =" 7.4.1" />
16
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.5.0" />
18
17
<PackageReference Include =" System.Reactive" Version =" 5.0.0" />
19
- <PackageReference Include =" xunit" Version =" 2.4.1 " />
20
- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3 " >
18
+ <PackageReference Include =" xunit" Version =" 2.4.2 " />
19
+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5 " >
21
20
<PrivateAssets >all</PrivateAssets >
22
21
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
23
22
</PackageReference >
Original file line number Diff line number Diff line change 8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.4 .0" />
11
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.5 .0" />
12
12
<PackageReference Include =" xunit" Version =" 2.4.2" />
13
13
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5" >
14
14
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
You can’t perform that action at this time.
0 commit comments