File tree Expand file tree Collapse file tree
apollo-federation/src/query_plan/incremental_planner/field_routing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ use super::super::fetch_graph::InputRewriteInfo;
1313use super :: super :: shared_path:: SharedPath ;
1414use super :: FieldRoutingSearchSpace ;
1515use crate :: error:: FederationError ;
16- use crate :: operation:: Field ;
1716use crate :: operation:: Selection ;
1817use crate :: operation:: SelectionSet ;
1918use crate :: query_graph:: QueryGraphEdgeTransition ;
@@ -680,28 +679,3 @@ impl FieldRoutingSearchSpace {
680679 Ok ( ( ) )
681680 }
682681}
683-
684- /// The response path elements a field contributes: its response key, plus
685- /// an index wildcard per level of list nesting.
686- pub ( super ) fn field_response_elements (
687- field : & Field ,
688- ) -> Result < Vec < FetchDataPathElement > , FederationError > {
689- let mut elements = vec ! [ FetchDataPathElement :: Key (
690- field. response_name( ) . clone( ) ,
691- Default :: default ( ) ,
692- ) ] ;
693- let mut ty = & field. field_position . get ( field. schema . schema ( ) ) ?. ty ;
694- loop {
695- match ty {
696- apollo_compiler:: ast:: Type :: Named ( _) | apollo_compiler:: ast:: Type :: NonNullNamed ( _) => {
697- break ;
698- }
699- apollo_compiler:: ast:: Type :: List ( inner)
700- | apollo_compiler:: ast:: Type :: NonNullList ( inner) => {
701- elements. push ( FetchDataPathElement :: AnyIndex ( Default :: default ( ) ) ) ;
702- ty = inner;
703- }
704- }
705- }
706- Ok ( elements)
707- }
You can’t perform that action at this time.
0 commit comments