branch: elpa/graphql-mode
commit e254c7405dcc38986babec899e3155bf51b06b22
Author: David Vazquez Pua <[email protected]>
Commit: David Vazquez Pua <[email protected]>
graphql-send-query uses the whole buffer
Because queries could include multiple fragments.
---
graphql-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 15da3620af..cc14d75a6f 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -101,7 +101,7 @@ response from the server."
(interactive)
(unless graphql-url
(setq graphql-url (read-string "GraphQL URL: " )))
- (let* ((query (graphql-current-query))
+ (let* ((query (buffer-substring-no-properties (point-min) (point-max)))
(response (graphql--query query)))
(with-current-buffer-window
"*GraphQL*" 'display-buffer-pop-up-window nil