Skip to content

Type of mutation input in 1.13.0 #3799

Answered by rmosolgo
pic asked this question in Q&A
Dec 24, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi! Sorry to hear that it stopped working.

There were some changes to how mutations generate their input types, for example: v1.12.21...v1.13.0#diff-74f77a993e7facb851ef0be965716bac540dfe856aae65dff2f0c755ae26f1f0R86

I would expect that def self.default_graphql_name in the mutation class be in charge of this, based on this code:

mutation_name = graphql_name
mutation_class = self
Class.new(input_object_class) do
graphql_name("#{mutation_name}Input")

So, I'd expect something like this to work:

class Mutations::BaseMutation < GraphQL::Schema::RelayClassicMutation 
  def self.d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pic
Comment options

Answer selected by pic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants