We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce85533 commit 16c7613Copy full SHA for 16c7613
graphql/execution/experimental/fragment.py
@@ -11,7 +11,10 @@
11
from ..values import get_argument_values
12
from ...error import GraphQLError
13
from .utils import imap, normal_map
14
-
+try:
15
+ from itertools import izip as zip
16
+except:
17
+ pass
18
19
def get_base_type(type):
20
if isinstance(type, (GraphQLList, GraphQLNonNull)):
@@ -109,7 +112,11 @@ def partial_resolvers(self):
109
112
110
113
@cached_property
111
114
def fragment_container(self):
- fields = zip(*self.partial_resolvers)[0]
115
+ try:
116
+ fields = next(zip(*self.partial_resolvers))
117
+ except StopIteration:
118
+ fields = tuple()
119
+
120
class FragmentInstance(dict):
121
# def __init__(self):
122
# self.fields = fields
0 commit comments