[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/graphql-mode 4b0134a19a 050/122: forget docstring
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/graphql-mode 4b0134a19a 050/122: forget docstring |
Date: |
Sat, 29 Jan 2022 08:03:32 -0500 (EST) |
branch: elpa/graphql-mode
commit 4b0134a19a9ca268f672c5db1089bdf4e2ce9dbe
Author: Tim Shiu <punshiu@fb.com>
Commit: Tim Shiu <punshiu@fb.com>
forget docstring
---
graphql-mode.el | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 21dfa8139b..f8578a627e 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -69,7 +69,10 @@
:group 'graphql)
(defun graphql--query (query operation variables)
- "Send QUERY to the server at `graphql-url' and return the response from the
server."
+ "Send QUERY to the server at `graphql-url' and return the response from the
server.
+QUERY GraphQL query/mutation/subscription definition(s)
+OPERATION name of the query/mutation/subscription
+VARIABLES content of variables for query/mutation/subscription"
(let* ((url-request-method "POST")
(url (format "%s?query=%s" graphql-url (url-encode-url query))))
(if operation
@@ -79,7 +82,12 @@
(with-temp-buffer (graphql-post-request graphql-url url query operation
variables))))
(defun graphql-post-request (host_path url query operation variables)
- "Graphql make post request to graphql endpoint url with body of query,
operationName, and variables."
+ "Make post request to graphql server with url and body.
+HOST_PATH host name and the path to graphql endpoint
+URL hostname, path, search parameters, such as operationName and variables
+QUERY query definition(s) of query, mutation, and/or subscription
+OPERATION name of the operation if multiple definition is given in QUERY
+VARIABLES list of variables for query operation"
(let* ((body (list (cons "query" query)
(cons "operationName" operation)
(cons "variables" variables)))
@@ -139,7 +147,8 @@
(replace-regexp-in-string "[({].*" "" (nth 1 tokens)))))
(defun graphql-current-variables (filename)
- "Get the content of graphql variables from a file."
+ "Get the content of graphql variables from a file.
+FILENAME path the file containing json for query"
(if (and filename
(not (string-equal filename ""))
(not (file-directory-p filename))
- [nongnu] elpa/graphql-mode 497529dd4d 008/122: Fontify query, (continued)
- [nongnu] elpa/graphql-mode 497529dd4d 008/122: Fontify query, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 26a5d8a665 043/122: make graphql-current-* function, not command. also graphql-begining-of-variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 6e1f5335fa 030/122: Mention json-mode in the README.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 8a4a5fae69 015/122: Fontify field arguments as variable names, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7798aef2a8 029/122: Fix typo, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 052491e05f 048/122: update variable encoding in post body, ask operation Name if needed, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 83cba48fd8 014/122: Remove unnecessary syntax, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 6017afac92 017/122: Rename graphql.el to graphql-mode.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7482c1b100 025/122: Add basic commentary, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 36b1a4ed9f 070/122: Merge pull request #16 from emacsjanitors/no-request, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 4b0134a19a 050/122: forget docstring,
ELPA Syncer <=
- [nongnu] elpa/graphql-mode 5f2ee4b3b3 024/122: Add melpa badge, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 8e58196e21 023/122: Merge pull request #1 from syohex/fix-package, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 2ee89d4e05 080/122: Fix Error during redisplay, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 0b4152d485 051/122: Fix tests to use variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 74ee772a62 087/122: Merge pull request #26 from Malabarba/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ebd6502c09 085/122: Merge pull request #25 from Malabarba/operation-bug, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode f1be68cea4 108/122: Add key binding for editing headers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 3cbaa5ef35 041/122: Add multiple queries definition and variables support, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 4c942986fa 086/122: Also insert response headers in the buffer (with comment face), ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 6f6b303af4 084/122: Merge pull request #24 from Malabarba/master, ELPA Syncer, 2022/01/29