Skip to content
Prev Previous commit
Next Next commit
Passing test, removed debugging
  • Loading branch information
boneill42 committed Jan 4, 2017
commit 3f932744414a7e8baf7d4d595e518c62ec4f53b7
1 change: 0 additions & 1 deletion graphql/execution/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def collect_fields(ctx, runtime_type, selection_set, fields, prev_fragment_names
for directive in directives:
if directive.name.value == GraphQLExportDirective.name:
variable = get_argument_values(GraphQLExportDirective.args, directive.arguments)['as']
import pdb; pdb.set_trace()
ctx.variable_values.setdefault(variable, []).append(selection.name.value)

if not should_include_node(ctx, directives):
Expand Down
2 changes: 1 addition & 1 deletion graphql/execution/tests/test_directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_export():
result = execute_test_query('{ a, b @export(as: "ids") }')
assert not result.errors
assert result.data == {'a': 'a', 'b': 'b'}
assert result.variable_values == {'ids': 'b'}
assert result.variable_values == {'ids': ['b']}


def test_if_false_omits_on_scalar():
Expand Down