Skip to content
Snippets Groups Projects
Unverified Commit eca10b1c authored by Thiago Bellini Ribeiro's avatar Thiago Bellini Ribeiro
Browse files

fix: fix get_field_def

parent 474bc685
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ class QueryOptimizer(object): ...@@ -51,7 +51,7 @@ class QueryOptimizer(object):
def optimize(self, queryset): def optimize(self, queryset):
info = self.root_info info = self.root_info
field_def = get_field_def(info.schema, info.parent_type, info.field_name) field_def = get_field_def(info.schema, info.parent_type, info.field_nodes[0])
store = self._optimize_gql_selections( store = self._optimize_gql_selections(
self._get_type(field_def), self._get_type(field_def),
info.field_nodes[0], info.field_nodes[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment