Graphiql: Sort the mutations after name to make it easier to read

Created on 13 Nov 2017  路  4Comments  路  Source: graphql/graphiql

Would it be an idea to sort the mutations so that when you are looking for mutations you can easily look for it in a sorted list in the sidebar documentation?

enhancement help wanted

Most helpful comment

Hey,
I would like to work on a pull request that would do the following:

  • Search results would be sorted alphabetically.
  • Limit to search within mutation, query and subscription

All 4 comments

@kevinsimper do you mean when you have more than one operation in the query editor?

query a {
}

mutation b {
}

I think you could also search within the window - Ctrl - F should pop up the search box in the editor.

I just updated the original post, but I was thinking about the sidebar documentation :)

You mean when you're searching for keywords in the doc explorer, right? Yeah that's a good idea - in fact, we've been wanting more detailed filter options for the search bar. Searching within a query/mutation/subscription type makes good sense to me.

Unfortunately I'm a little stretched thin to work on this at the moment - I'll leave this up for grabs if anyone wants to tackle this.

Hey,
I would like to work on a pull request that would do the following:

  • Search results would be sorted alphabetically.
  • Limit to search within mutation, query and subscription
Was this page helpful?
0 / 5 - 0 ratings