question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add the ability to group the mutations

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
yordiscommented, Oct 16, 2017

@asiandrummer many people flip the order of the naming for example createOrder vs orderCreate. If you have multiple actions around the order you will normally put updateOrder, createOrder … so on. But this will spread the mutation list all over the place in the Dos section, instead of put them together for be better organization.

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 group: key to the schema in the introspection.

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

{
  __schema {
    group <--- I guess
    queryType {
      name
    }
  }
}

Something like that, where you could read from the introspection and be able to group them (probably use the same navigation in the Docs section)

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.

0reactions
sebastienbarrecommented, Jan 11, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Genetic Mutation | Learn Science at Scitable - Nature
For mutations to affect an organism's descendants, they must: 1) occur in cells that produce the next generation, and 2) affect the hereditary...
Read more >
DNA Mutations | Biology for Majors I - Lumen Learning
Over a lifetime, our DNA can undergo changes or mutations in the sequence of bases: A, C, G and T. This results in...
Read more >
DNA Mutation and Repair
A mutation, which may arise during replication and/or recombination, is a permanent change in the nucleotide sequence of DNA. Damaged DNA can be...
Read more >
Mutation, Repair and Recombination - Genomes - NCBI - NIH
Methylations, for example, often result in modified nucleotides with altered base-pairing properties and so lead to point mutations.
Read more >
Evolution myths: Mutations can only destroy information
Most people lose the ability to digest milk by their teens. A few thousand years ago, however, after the domestication of cattle, several...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found