Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicolaslopezj/atom-graphql-autocomplete
Autocomplete and lint from a GraphQL endpoint in atom.
https://github.com/nicolaslopezj/atom-graphql-autocomplete
Last synced: about 1 month ago
JSON representation
Autocomplete and lint from a GraphQL endpoint in atom.
- Host: GitHub
- URL: https://github.com/nicolaslopezj/atom-graphql-autocomplete
- Owner: nicolaslopezj
- License: mit
- Created: 2016-11-26T04:14:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:27:46.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T18:51:31.972Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 356 KB
- Stars: 48
- Watchers: 2
- Forks: 7
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-graphql - graphql-autocomplete - Autocomplete and lint from a GraphQL endpoint in Atom. (Tools / Julia Libraries)
README
# GraphQL Autocomplete Atom
```sh
graphql-autocomplete
```Autocomplete and lint from a GraphQL endpoint or static JSON introspection query in atom.
![](https://github.com/nicolaslopezj/atom-graphql-autocomplete/blob/master/resources/example.png)
### Instructions
- Create a `.graphqlrc` file in the root of your project
- For querying against a live endpoint, add the `endpoint`:
```json
{
"request": {
"url": "http://localhost:3000/graphql"
}
}
```- Adding headers for ex authentication:
```
{
"request": {
"url": "http://localhost:8082/v1alpha1/graphql",
"headers": {
"Authorization": "Bearer "
}
}
}
```- For using a static file, add the `file path` (can be relative to the project or the fully-qualified path):
```json
{
"file": {
"path": "./introspection.json"
}
}
```