Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davazp/graphql-mode
An Emacs mode for GraphQL
https://github.com/davazp/graphql-mode
emacs-mode graphql graphql-mode melpa
Last synced: about 1 month ago
JSON representation
An Emacs mode for GraphQL
- Host: GitHub
- URL: https://github.com/davazp/graphql-mode
- Owner: davazp
- License: gpl-3.0
- Created: 2016-10-07T08:34:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-18T12:19:31.000Z (3 months ago)
- Last Synced: 2024-09-18T16:42:00.655Z (3 months ago)
- Topics: emacs-mode, graphql, graphql-mode, melpa
- Language: Emacs Lisp
- Size: 145 KB
- Stars: 161
- Watchers: 10
- Forks: 31
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
graphql-mode
============[![MELPA](https://melpa.org/packages/graphql-mode-badge.svg)](https://melpa.org/#/graphql-mode)
`graphql-mode` is an emacs mode to edit GraphQL schema and queries.
## Installation
`graphql-mode` can be installed from MELPA repository at http://melpa.org/.
Once the installation is completed, any file with a *.graphql*
extension will be loaded with this mode.You can optionally install `json-mode`, and it will be enabled in the
buffer that contains the response from a GraphQL service.## Querying Endpoints
To send a query to a server, you will first need the
[`request`](https://github.com/tkf/emacs-request) package. Then use
`graphql-send-query` (`C-c C-c`) to send a query.If you have a [`.graphqlconfig`](https://github.com/jimkyndemeyer/graphql-config-examples) file, you can select an endpoint configuration
with `graphql-select-endpoint` (`C-c C-l`).To send additional headers for a request, `graphql-extra-headers` must be
set. It is automatically set by `graphql-select-endpoint`, or you can edit its
value using JSON with `graphql-edit-headers` (`C-c e h`).