@@ -476,7 +476,7 @@ impl Unstructured<'_> {
476
476
} )
477
477
}
478
478
479
- fn arbitrary_inline_fragment ( & mut self , schema : & Schema , executable_document : & ExecutableDocument ) -> Result < InlineFragment > {
479
+ fn arbitrary_inline_fragment ( & mut self , schema : & Schema , ty : & dyn TypeHasFields , executable_document : & ExecutableDocument ) -> Result < InlineFragment > {
480
480
let ty = schema. random_type (
481
481
self ,
482
482
vec ! [ ExtendedTypeKind :: Object , ExtendedTypeKind :: Interface ] ,
@@ -493,7 +493,7 @@ impl Unstructured<'_> {
493
493
} )
494
494
}
495
495
496
- fn arbitrary_fragment_spread ( & mut self , schema : & Schema , executable_document : & ExecutableDocument ) -> Result < FragmentSpread > {
496
+ fn arbitrary_fragment_spread ( & mut self , schema : & Schema , ty : & dyn TypeHasFields , executable_document : & ExecutableDocument ) -> Result < FragmentSpread > {
497
497
let definitions = executable_document. fragments . values ( ) . collect :: < Vec < _ > > ( ) ;
498
498
499
499
Ok ( FragmentSpread {
@@ -536,10 +536,10 @@ impl Unstructured<'_> {
536
536
} ) ) )
537
537
} ,
538
538
( _, Ok ( 1 ) ) => Ok ( Selection :: FragmentSpread ( Node :: new (
539
- self . arbitrary_fragment_spread ( schema, executable_document) ?,
539
+ self . arbitrary_fragment_spread ( schema, ty , executable_document) ?,
540
540
) ) ) ,
541
541
( _, Ok ( 2 ) ) => Ok ( Selection :: InlineFragment ( Node :: new (
542
- self . arbitrary_inline_fragment ( schema, executable_document) ?,
542
+ self . arbitrary_inline_fragment ( schema, ty , executable_document) ?,
543
543
) ) ) ,
544
544
_ => unreachable ! ( ) ,
545
545
}
0 commit comments