graphql / graphql/graphiql

Plugin: keyboard shortcut to add all fields

Open
#661 6 comments 16 reactions 0 assignees View on GitHub
enhancement graphiql monaco-graphql potential plugin
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

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 {

}
}
```

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.