Skip to content
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

Is it possible to group query/mutations and subscriptions #693

Closed
kavink opened this issue Mar 20, 2018 · 1 comment
Closed

Is it possible to group query/mutations and subscriptions #693

kavink opened this issue Mar 20, 2018 · 1 comment

Comments

@kavink
Copy link

kavink commented Mar 20, 2018

As I add more models to query/mutations and subscriptions, would be great to group them by tags or something, Same way as Swagger does.

Wondering if Graphql and by extension Graphene allows it to do ? And how to do it.

@jkimbo
Copy link
Member

jkimbo commented May 15, 2018

@kavink GraphQL doesn't specify any particular ways of grouping mutations or subscriptions. There is an interesting discussion on it here: graphql/graphql-spec#376

Generally it's not useful to try and map traditional CRUD api endpoints to a GraphQL api. Mutations end up being very specific to a particular use case and so are difficult to group anyway.

@jkimbo jkimbo closed this as completed May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants