spectaql icon indicating copy to clipboard operation
spectaql copied to clipboard

Show full mutation input variables like in a response

Open RokasVaitkevicius opened this issue 1 year ago • 2 comments

Hello, I have a question regarding variables in mutations. In most of my mutations I have a single input object which is of some custom type that houses all input props.

It would be great if those props from that type in documentation variables would be expanded like in responses.

Is it possible? Maybe there is an option in config that does that and I've missed it?

I know one option, is to add metadata and a custom example, but it seems quite cumbersome rewriting everything, that is already in the schema.

Also if we're talking about new features, it would also be nice to see custom type props here with mutation as well (red box I've made). They could be in an accordion or something.

image

RokasVaitkevicius avatar Feb 22 '23 14:02 RokasVaitkevicius