[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/graphql-mode c643d53a4b 083/122: Don't send operationName
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/graphql-mode c643d53a4b 083/122: Don't send operationName when operation is an empty string |
Date: |
Sat, 29 Jan 2022 08:03:37 -0500 (EST) |
branch: elpa/graphql-mode
commit c643d53a4b1bfa654c361c22caea6964c5334a4e
Author: Artur Malabarba <artur@endlessparentheses.com>
Commit: Artur Malabarba <artur@endlessparentheses.com>
Don't send operationName when operation is an empty string
This happen, for instance, in the query below. That would cause
"operationName": "" to be sent in the request json, which leads to
errors in the backend.
query {
repositoryOwner(login: "Malabarba") {
repositories(first: 100, isFork: false) {
totalCount
nodes { name }
}
}
}
---
graphql-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index c61768903e..0b5cea5e78 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -77,7 +77,7 @@
"Put together a json like object with QUERY, OPERATION, and VARIABLES."
(let* ((body '()))
(push (cons 'query query) body)
- (when operation
+ (when (and operation (not (string= operation "")))
(push (cons 'operationName operation) body))
(when variables
(push (cons 'variables variables) body))
- [nongnu] elpa/graphql-mode 17c2150ff6 058/122: rebase branch 'queries support' into branch 'next', (continued)
- [nongnu] elpa/graphql-mode 17c2150ff6 058/122: rebase branch 'queries support' into branch 'next', ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 83e3a73f21 033/122: Fix: don't add slash between url and query parameters, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 22a4340ec3 044/122: add post body json support: query, operationName, variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 41df2a3140 019/122: Add docstring for graphql-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode d5cfe9326c 074/122: Rename graphql-headers to graphql-extra-headers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 5971b69c8c 076/122: Fix: respect local value of graphql-url when posting a request, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 5e7665dfc4 059/122: forget the actual changes, (I have two location to dev/test), ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 2326c1fb18 034/122: Merge pull request #7 from eoma/fix-url, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 04e56ae626 053/122: Disable json-mode for response temporarily, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ab58192967 081/122: Merge pull request #23 from leoliu/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode c643d53a4b 083/122: Don't send operationName when operation is an empty string,
ELPA Syncer <=
- [nongnu] elpa/graphql-mode 09a9af6c98 075/122: Merge remote-tracking branch 'origin/master' into next, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode b802f77542 068/122: graphql-send-query: Silence byte-compiler, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 4aebf7afd9 066/122: graphql-post-request: Use URL instead of missing ENDPOINT, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7c37aee28b 096/122: Open .gql files automatically as well, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 1125c2136d 055/122: extend graphql-current-operation to support 'line' boundary if sexp fail, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 321c1f4b64 095/122: Implement support for loading graphql-configs, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 033f6a074c 082/122: Don't use temp buffer, as it breaks local variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 63cd55ed7d 099/122: Implement abort behaviour, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7088db7250 091/122: Merge pull request #29 from Prillan/enable-json-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 9bed568ec8 097/122: Add Homepage header, ELPA Syncer, 2022/01/29