File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 20
20
from .values import get_directive_values
21
21
22
22
23
- __all__ = ["collect_fields" , "collect_sub_fields " ]
23
+ __all__ = ["collect_fields" , "collect_subfields " ]
24
24
25
25
26
26
def collect_fields (
@@ -47,19 +47,19 @@ def collect_fields(
47
47
return fields
48
48
49
49
50
- def collect_sub_fields (
50
+ def collect_subfields (
51
51
schema : GraphQLSchema ,
52
52
fragments : Dict [str , FragmentDefinitionNode ],
53
53
variable_values : Dict [str , Any ],
54
54
return_type : GraphQLObjectType ,
55
55
field_nodes : List [FieldNode ],
56
56
) -> Dict [str , List [FieldNode ]]:
57
- """Collect sub fields .
57
+ """Collect subfields .
58
58
59
59
Given a list of field nodes, collects all the subfields of the passed in fields,
60
60
and returns them at the end.
61
61
62
- collect_sub_fields requires the "return type" of an object. For a field that
62
+ collect_subfields requires the "return type" of an object. For a field that
63
63
returns an Interface or Union type, the "return type" will be the actual
64
64
object type returned by that field.
65
65
Original file line number Diff line number Diff line change 55
55
is_non_null_type ,
56
56
is_object_type ,
57
57
)
58
- from .collect_fields import collect_fields , collect_sub_fields
58
+ from .collect_fields import collect_fields , collect_subfields
59
59
from .middleware import MiddlewareManager
60
60
from .values import get_argument_values , get_variable_values
61
61
@@ -948,7 +948,7 @@ def collect_subfields(
948
948
)
949
949
sub_field_nodes = cache .get (key )
950
950
if sub_field_nodes is None :
951
- sub_field_nodes = collect_sub_fields (
951
+ sub_field_nodes = collect_subfields (
952
952
self .schema ,
953
953
self .fragments ,
954
954
self .variable_values ,
You can’t perform that action at this time.
0 commit comments