Given the following input type:
module Inputs
class MyInput < Types::BaseInputObject
argument :some_argument, String, required: true
argument :some_argument_1, String, required: true
end
end
The following mutation does not have the arguments deserialized as expected:
module Mutations
class MyMutation < BaseMutation
argument :my_input, MyInput, required: true
type Types::SomeType
def resolve(my_input:)
# my_input.some_argument is present, as expected
# my_input.some_argument_1 is not present
# instead, it takes the form of my_input.some_argument1
end
end
The query being used is:
mutation MyMutation(
$myInput: MyInput!
) {
myMutation(
myInput: $myInput
) {
...
}
}
Where the variables are:
const body = JSON.stringify({
variables: {
myInput: {
someArgument: 'some string',
someArgument1: 'some other string'
}
}
})
Is this a bug, or is it intended behaviour?
Given the following input type:
The following mutation does not have the arguments deserialized as expected:
The query being used is:
Where the variables are:
Is this a bug, or is it intended behaviour?