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.

Autocomplete for required variables

See original GitHub issue

I’ve just created a createUser mutation and there are about 30 potential fields, around 20 are required.

As I type I get told that I’m missing lots of required fields like so:

screenshot 2017-05-09 11 48 22

I think it’d be nice for autocomplete to add all of the required input fields so you can change booleans and fill in strings really quick. Right now it’s a case of looking at the error tooltip and adding each of them manually

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
asiandrummercommented, May 9, 2017

@intellix eek that’s painful. I can think of a couple of ways to help with this case - one is to add a button that fills all required fields with some temporary values (e.g. “” for strings, false for booleans, {} for objects, and etc).

Another is to automatically suggest variables when the query gets run, inferring from the default values for input types from your schema. Do your required fields have default values?

0reactions
acaocommented, Feb 23, 2020

try graphiql 0.17.5 all graphql web IDE or electron clients use codemirror-graphql here in our repository, as far as i know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autocomplete Rule Variables - Oracle Help Center
These are the common variable types used in an autocomplete rule, which closely align with the standard variable data types.
Read more >
HTML attribute: autocomplete - MDN Web Docs
The HTML autocomplete attribute lets web developers specify what if any permission the user agent has to provide automated assistance in ...
Read more >
Why VS Code IntelliSense for Python suggest autocomplete ...
Why VS Code IntelliSense for Python suggest autocomplete not for all variables of the same types? Ask Question. Asked 2 years, 3 months...
Read more >
Autocomplete Widget - jQuery UI API Documentation
If autocomplete specific styling is needed, the following CSS class names can be ... When invoked with no parameters, the current input's value...
Read more >
Autocomplete parameter options - Coda Pack SDK
The autocomplete function also has access to the values entered for previous parameters. Unlike in the execute function where these are passed in...
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