@@ -476,7 +476,7 @@ impl Unstructured<'_> {
476476 } )
477477 }
478478
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 > {
480480 let ty = schema. random_type (
481481 self ,
482482 vec ! [ ExtendedTypeKind :: Object , ExtendedTypeKind :: Interface ] ,
@@ -493,7 +493,7 @@ impl Unstructured<'_> {
493493 } )
494494 }
495495
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 > {
497497 let definitions = executable_document. fragments . values ( ) . collect :: < Vec < _ > > ( ) ;
498498
499499 Ok ( FragmentSpread {
@@ -536,10 +536,10 @@ impl Unstructured<'_> {
536536 } ) ) )
537537 } ,
538538 ( _, Ok ( 1 ) ) => Ok ( Selection :: FragmentSpread ( Node :: new (
539- self . arbitrary_fragment_spread ( schema, executable_document) ?,
539+ self . arbitrary_fragment_spread ( schema, ty , executable_document) ?,
540540 ) ) ) ,
541541 ( _, Ok ( 2 ) ) => Ok ( Selection :: InlineFragment ( Node :: new (
542- self . arbitrary_inline_fragment ( schema, executable_document) ?,
542+ self . arbitrary_inline_fragment ( schema, ty , executable_document) ?,
543543 ) ) ) ,
544544 _ => unreachable ! ( ) ,
545545 }
0 commit comments