-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to group the mutations #621
Comments
Hi @yordis - I'm not sure if I understand your proposal, but regardless I don't think As such, I'm going to close this issue for now. Feel free to reopen it if you think GraphiQL should handle this - if that's the case I'd love to see some example code + a more detailed use case scenario please. |
@asiandrummer many people flip the order of the naming for example I am not sure how to do some code example because it is more about what GraphiQL does, or rather does not do. I am not quite sure if the introspection is forced by Graphql on what you could put inside. For example add So I need to do is some way of tagging the mutation so I can group them for example @group :order
mutation :create_order do
# ...
end
@group :order
mutation :update_order do
# ...
end so it will be something like
Something like that, where you could read from the introspection and be able to group them (probably use the same navigation in the The reason I didn't open it there is because I am not sure if the introspection shape is forced by GraphQL or you could relay on some added feature from it. |
@asiandrummer could you reopen this please so we have track of the feature request. Related to graphql/graphql-spec#376 |
Agree, no one want a flat list of hundreds queries & mutation Actual:
Expected:
Or at least
|
Was there ever a resolution to this? I can't be the only one with an absolutely unruly list of queries and mutations, almost 1800 lines long. My "Execute Query" button requires scrolling several screens down to reach the last one. Are you guys using a different set of tooling to solve this? From a UI perspective, allowing the "Execute Query" to have sub-menus for "groups" would be logical step. Thank you. |
I don't if this should be here or in the actual spec but. Right now practices like put the resource name and then action for example
postCreate
because we want to have some order in the mutations can be resolve with some soft of tag or grouping.I think it will be good to add that functionality so it's easier to manage the mutations and we do not have to create some weird names because the tooling force us to do for a better experience on it.
The text was updated successfully, but these errors were encountered: