furious-luke/polecat

Implicit input declarations in custom mutations

Opened this issue · 0 comments

As a convenience, it would be nice to not have to declare separate input types for every custom mutation: sometimes we just want a very specific input type that won't be used anywhere else. For example:

class MyMutation(model.Mutation):
    class Input:
        value = model.Int()

I would expect this would generate the custom input type with the name MyInput.