Improvex syntax

This commit is contained in:
Syrus Akbary 2015-12-04 02:41:39 -08:00
parent bee0af1125
commit 3586fdfb77
2 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,10 @@ class WrapRoot(object):
def debug_objecttype(objecttype):
return type('Debug{}'.format(objecttype._meta.type_name), (WrapRoot, objecttype), {'debug': Field(DjangoDebug, name='__debug')})
return type(
'Debug{}'.format(objecttype._meta.type_name),
(WrapRoot, objecttype),
{'debug': Field(DjangoDebug, name='__debug')})
class DebugSchema(Schema):

View File

@ -4,6 +4,7 @@ from collections import Iterable
from functools import wraps
import six
from graphql_relay.connection.arrayconnection import connection_from_list
from graphql_relay.node.node import to_global_id