23
23
from .bases .mutation import MutationBase
24
24
from .bases .object_type import ObjectTypeBase
25
25
from .bases .scalar import ScalarBase
26
- from .field import Field , InputField
27
26
from .metaclasses .input_type import InputTypeMeta
28
27
from .metaclasses .interface import InterfaceMeta
29
28
from .metaclasses .mutation import MutationMeta
30
29
from .metaclasses .object_type import ObjectTypeMeta
31
30
from .metaclasses .scalar import ScalarMeta
32
31
from .metaclasses .union import UnionMeta
33
- from .thunk import AttributeTypeThunk , RootTypeThunk , ThunkList , TransformThunkList
32
+ from .types .argument import Argument
33
+ from .types .field import Field , InputField
34
34
from .utils .enum_to_graphql_enum import enum_to_graphql_enum
35
35
from .utils .maybe_t import maybe_t
36
36
from .utils .method_dispatch import method_dispatch
37
+ from .utils .thunk import AttributeTypeThunk , RootTypeThunk , ThunkList , TransformThunkList
37
38
38
39
builtin_scalars = [
39
40
GraphQLBoolean ,
@@ -49,15 +50,16 @@ class TypeRegistry(object):
49
50
# Types
50
51
'ObjectType' , 'InputType' , 'Union' 'Interface' , 'Implements' , 'Scalar'
51
52
# Functions
52
- 'Schema' , 'Register' , 'Mixin' ,
53
+ 'Schema' , 'Register' , 'Mixin' ,
53
54
# Mutations
54
55
'Mutation' , 'Mutations' ,
55
56
# Fields
56
- 'Field' , 'InputField' ,
57
+ 'Field' , 'InputField' , 'Argument'
57
58
])
58
59
59
60
Field = Field
60
61
InputField = InputField
62
+ Argument = Argument
61
63
62
64
def __init__ (self ):
63
65
self ._registered_types = OrderedDict ()
0 commit comments