@@ -50,7 +50,7 @@ List<string> GetPaths(IResolveFieldContext context, IReadOnlyList<Navigation> na
5050 {
5151 List < string > list = new ( ) ;
5252
53- AddField ( list , context . FieldAst , context . FieldAst . SelectionSet , null , context . FieldDefinition , navigationProperty , context ) ;
53+ AddField ( list , context . FieldAst , context . FieldAst . SelectionSet ! , null , context . FieldDefinition , navigationProperty , context ) ;
5454
5555 return list ;
5656 }
@@ -66,7 +66,7 @@ void AddField(List<string> list, Field field, SelectionSet selectionSet, string?
6666
6767 foreach ( var inlineFragment in selectionSet . Selections . OfType < InlineFragment > ( ) )
6868 {
69- if ( inlineFragment . Type . GraphTypeFromType ( context . Schema ) is IComplexGraphType graphFragment )
69+ if ( inlineFragment . Type ! . GraphTypeFromType ( context . Schema ) is IComplexGraphType graphFragment )
7070 {
7171 AddField ( list , field , inlineFragment . SelectionSet , parentPath , fieldType , parentNavigationProperties , context , graphFragment ) ;
7272 }
@@ -130,7 +130,7 @@ void ProcessSubFields(List<string> list, string? parentPath, ICollection<Field>
130130 var single = graph . Fields . SingleOrDefault ( x => x . Name == subField . Name ) ;
131131 if ( single is not null )
132132 {
133- AddField ( list , subField , subField . SelectionSet , parentPath , single , navigationProperties , context ) ;
133+ AddField ( list , subField , subField . SelectionSet ! , parentPath , single , navigationProperties , context ) ;
134134 }
135135 }
136136 }
@@ -146,7 +146,7 @@ public static void SetIncludeMetadata(FieldType fieldType, string fieldName, IEn
146146 SetIncludeMetadata ( fieldName , includeNames , fieldType . Metadata ) ;
147147 }
148148
149- static void SetIncludeMetadata ( string fieldName , IEnumerable < string > ? includeNames , IDictionary < string , object > metadata )
149+ static void SetIncludeMetadata ( string fieldName , IEnumerable < string > ? includeNames , IDictionary < string , object ? > metadata )
150150 {
151151 if ( includeNames is null )
152152 {
@@ -167,7 +167,7 @@ static bool TryGetIncludeMetadata(FieldType fieldType, [NotNullWhen(true)] out s
167167 {
168168 if ( fieldType . Metadata . TryGetValue ( "_EF_IncludeName" , out var fieldNameObject ) )
169169 {
170- value = ( string [ ] ) fieldNameObject ;
170+ value = ( string [ ] ) fieldNameObject ! ;
171171 return true ;
172172 }
173173
0 commit comments