File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -256,8 +256,7 @@ def directives
256
256
end
257
257
258
258
def loadable? ( t , _ctx )
259
- load_all_types
260
- !@all_types [ t . graphql_name ] && @cached_visible [ t ]
259
+ @cached_visible [ t ] && !referenced? ( t )
261
260
end
262
261
263
262
def loadable_possible_types ( t , _ctx )
Original file line number Diff line number Diff line change @@ -232,7 +232,9 @@ def types
232
232
233
233
# @return [Boolean] True if this type is used for `loads:` but not in the schema otherwise and not _explicitly_ hidden.
234
234
def loadable? ( type , _ctx )
235
- !reachable_type_set . include? ( type ) && visible_type? ( type )
235
+ visible_type? ( type ) &&
236
+ !referenced? ( type ) &&
237
+ ( type . respond_to? ( :interfaces ) ? interfaces ( type ) . all? { |i | loadable? ( i , _ctx ) } : true )
236
238
end
237
239
238
240
def loadable_possible_types ( union_type , _ctx )
You can’t perform that action at this time.
0 commit comments