File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
spec/graphql/analysis/ast Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def extract_deprecated_arguments(argument_values)
4848 argument_type = argument_type . of_type
4949 end
5050
51- if argument_type . kind . input_object?
51+ if argument_type . kind . input_object? && argument . value . respond_to? ( :arguments )
5252 extract_deprecated_arguments ( argument . value . arguments . argument_values ) # rubocop:disable Development/ContextIsPassedCop -- runtime args instance
5353 elsif argument_type . kind . enum?
5454 extract_deprecated_enum_value ( argument_type , argument . value )
Original file line number Diff line number Diff line change 254254 end
255255 end
256256
257- describe "mutation with deprecated arguments with prepared values" do
257+ describe "mutation with deprecated arguments with prepared values does not break " do
258258 let ( :query_string ) { %|
259259 mutation {
260260 pushValue(preparedTestInput: { deprecatedDate: "2020-10-10" })
261261 }
262262 | }
263263
264- it "keeps track of nested deprecated arguments" do
265- assert_equal [ 'PreparedDateInput.deprecatedDate' ] , result [ :used_deprecated_arguments ]
264+ it "does not keeps track of nested deprecated arguments" do
265+ assert_equal [ ] , result [ :used_deprecated_arguments ]
266266 end
267267 end
268268
You can’t perform that action at this time.
0 commit comments