https://github.com/heavenshell/vim-gql
Execute Graphql's query in Vim
https://github.com/heavenshell/vim-gql
Last synced: 10 months ago
JSON representation
Execute Graphql's query in Vim
- Host: GitHub
- URL: https://github.com/heavenshell/vim-gql
- Owner: heavenshell
- License: bsd-3-clause
- Created: 2020-01-06T13:45:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T14:08:30.000Z (almost 6 years ago)
- Last Synced: 2025-08-15T20:17:38.235Z (10 months ago)
- Language: Vim script
- Homepage:
- Size: 5.28 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-gql

Execute Graphql's query in vim.
## Usage
Set server settings to your vimrc.
```vim
let g:gql_servers = [
\ {
\ 'host': 'https://api.github.com/graphql',
\ 'headers': {'Authorization': 'bearer YOUR_TOKEN'},
\ },
\ {
\ 'host': 'http://localhost:8080/.netlify/functions/index',
\ 'headers': {'Content-Type': 'application/json'},
\ },
\]
```
Execute `Gql` command.
```vim
:Gql -server=https://api.github.com/graphql $owner=YOUR_ACCOUNT
```
## Screencasts


## Requirement
This plugin need [webapi-vim](https://github.com/mattn/webapi-vim).
## License
New BSD License