https://github.com/normalhuman01/atom-graphql-autocomplete
a autocomplete and lint from a GraphQL endpoint in atom
https://github.com/normalhuman01/atom-graphql-autocomplete
Last synced: about 1 year ago
JSON representation
a autocomplete and lint from a GraphQL endpoint in atom
- Host: GitHub
- URL: https://github.com/normalhuman01/atom-graphql-autocomplete
- Owner: normalhuman01
- License: mit
- Created: 2023-12-18T22:04:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T22:06:53.000Z (over 2 years ago)
- Last Synced: 2025-02-01T12:45:27.801Z (over 1 year ago)
- Language: JavaScript
- Size: 136 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL Autocomplete Atom
```sh
graphql-autocomplete
```
Autocomplete and lint from a GraphQL endpoint or static JSON introspection query in atom.

### 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"
}
}
```