branch: elpa/graphql-mode
commit 4aebf7afd9414e965318efe77ccbd7703a330059
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
graphql-post-request: Use URL instead of missing ENDPOINT
There is no lexical variable ENDPOINT and surrounding code
suggests that the value of URL should be used instead.
---
graphql-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 485e7a07fa..464ce0f808 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -106,7 +106,7 @@ VARIABLES list of variables for query operation"
:complete (lambda (&rest _)
(message "%s" (if (string-equal ""
operation)
url
- (format
"%s?operationName=%s" endpoint operation)))))))
+ (format
"%s?operationName=%s" url operation)))))))
(json-encode (request-response-data response))))
(defun graphql-beginning-of-query ()