You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/graphql/schema_comparator/changes.rb
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -579,8 +579,8 @@ class InputFieldAdded < AbstractChange
579
579
attr_reader:input_object_type,:field,:criticality
580
580
581
581
definitialize(input_object_type,field)
582
-
@criticality=iffield.type.non_null?
583
-
Changes::Criticality.breaking(reason: "Adding a non-null field to an existing input type will cause existing queries that use this input type to error because they will not provide a value for this new field.")
Changes::Criticality.breaking(reason: "Adding a non-null input field without a default value to an existing input type will cause existing queries that use this input type to error because they will not provide a value for this new field.")
584
584
else
585
585
Changes::Criticality.non_breaking
586
586
end
@@ -602,8 +602,8 @@ class FieldArgumentAdded < AbstractChange
602
602
attr_reader:type,:field,:argument,:criticality
603
603
604
604
definitialize(type,field,argument)
605
-
@criticality=ifargument.type.non_null?
606
-
Changes::Criticality.breaking(reason: "Adding a required argument to an existing field is a breaking change because it will cause existing uses of this field to error.")
Changes::Criticality.breaking(reason: "Adding a required argument without a default value to an existing field is a breaking change because it will cause existing uses of this field to error.")
0 commit comments