Skip to content

Commit 352679c

Browse files
committed
minor validation tweak
Replicates graphql/graphql-js@4ad2b70
1 parent 36487c8 commit 352679c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/graphql/type/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def detect_field_default_value_cycle(
838838

839839
# Check to see if there is a cycle.
840840
cycle_index = self.field_path_index.get(field_str)
841-
if cycle_index is not None and cycle_index > 0:
841+
if cycle_index is not None:
842842
self.context.report_error(
843843
"Invalid circular reference. The default value of Input Object"
844844
f" field {field_str} references itself"

0 commit comments

Comments
 (0)