File tree Expand file tree Collapse file tree 2 files changed +314
-239
lines changed
graphql-api-generator/utils
graphql-server/drivers/arangodb Expand file tree Collapse file tree 2 files changed +314
-239
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ def ast_type_to_string(_type: GraphQLType):
773
773
:return:
774
774
"""
775
775
776
- # ast_nodes types behavies differnetly than for other types (as they are NodeTypes)
776
+ # ast_nodes types behavies differently than other types (as they are NodeTypes)
777
777
# So we can't use the normal functions
778
778
779
779
@@ -803,7 +803,7 @@ def ast_type_to_string(_type: GraphQLType):
803
803
804
804
def directive_from_interface (directive , interface_name ):
805
805
"""
806
- Return the correct directive string fro directives inhertied from interfaces
806
+ Return the correct directive string from directives inhertied from interfaces
807
807
:param directive:
808
808
:param interface_name:
809
809
:return string:
@@ -834,6 +834,7 @@ def get_directive_arguments(directive):
834
834
for arg in directive .arguments :
835
835
output += arg .name .value + ':'
836
836
if isinstance (arg .value , ListValueNode ):
837
+ # List
837
838
output += '['
838
839
for V in arg .value .values :
839
840
if isinstance (V , StringValueNode ):
@@ -844,6 +845,7 @@ def get_directive_arguments(directive):
844
845
output = output [:- 2 ] + ']'
845
846
846
847
else :
848
+ # Non-list
847
849
if isinstance (arg .value , StringValueNode ):
848
850
output += '"' + arg .value .value + '", '
849
851
else :
You can’t perform that action at this time.
0 commit comments