Skip to content

Add __repr__ and __str__ to ExecutionResult #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

bcb
Copy link
Contributor

@bcb bcb commented Sep 21, 2016

Gives nicer feedback when working in the repl

>>> schema.execute('{hello}')
{'data': {'hello': 'World'}}

And easily get the result as a json-encoded string

>>> str(schema.execute('{hello}'))
'{"data": {"hello": "World"}}'

bcb added 2 commits September 22, 2016 00:57
Gives better feedback when working in the repl, and allows easy
conversion of the result to a JSON encoded string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant