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.

Plugin: keyboard shortcut to add all fields

See original GitHub issue

Related: https://github.com/graphql/graphiql/issues/75

I would love to see a button, or a key combination that will add/autocomplete all direct fields of the current object. Complex fields will be autocompleted to {}, that will need to be manually fileld out.

Example:

Type Person with fields id, name, groups, teams
Type Group with fields id, name, people
Type Teams with fields id, name, people

Typing

query { 
  people { 
    <MAGIC KEY COMBINATRION>
  } 
}

becomes

query { 
  people { 
    id
    name
    groups(page: null , page_size: null) {  
    }
    teams(page: null , page_size: null) {  
    }
  } 
}

Also plus if the complex subtypes are added at the end

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:16
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
kevinsimpercommented, Feb 22, 2018

@axos88 That would be a cool feature and something I have thought of myself!

3reactions
axos88commented, Feb 15, 2018

Another possibility is to have an “add all” in the autocomplete dropdown.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add a keyboard shortcut for any Figma plugin - YouTube
Pop a component Plugin : https://www.figma.com/community/ plugin /940714430683584876/Pop-a-ComponentHalve Plugin : ...
Read more >
How to Make a Figma Plugin Keyboard Shortcut - Figment.so
Using a combination of ⌘ Command,⇧ Shift, ⌥ Option (or Alt), or ⌃ Control (or Ctrl) is a good idea. Choose two of...
Read more >
Autofill all fields at cursor - Altair GraphQL Client
To do this, use the keyboard shortcut ( Ctrl+Shift+Enter ) or select "Fill all fields" from the autocomplete menu. This will cause Altair...
Read more >
Visual studio code - keyboard shortcuts - expand/collapse all
5. This may have a conflict with the Vim plugin. · Ctrl + K Ctrl + 3. – noririco · 1. Nice, and...
Read more >
How do I use keyboard shortcuts when using Zotero to add or ...
If you choose a sequence that is already being used for a different shortcut, it will show up under the "Current Keys" field...
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