[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/graphql 3bf43e2ad1 05/56: Use real names of things
From: |
ELPA Syncer |
Subject: |
[elpa] externals/graphql 3bf43e2ad1 05/56: Use real names of things |
Date: |
Sat, 29 Oct 2022 13:57:52 -0400 (EDT) |
branch: externals/graphql
commit 3bf43e2ad18cc3c0325ff647c37fa9dbb2641486
Author: Sean Allred <code@seanallred.com>
Commit: Sean Allred <code@seanallred.com>
Use real names of things
---
README.md | 3 ++-
graphql.el | 10 +++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 24957432e2..ac7e446cf6 100644
--- a/README.md
+++ b/README.md
@@ -4,4 +4,5 @@ GraphQL.el
GraphQL.el provides a set of generic functions for interacting with
GraphQL web services.
-See also [`graphql-mode`](https://github.com/davazp/graphql-mode).
+See also [`graphql-mode`](https://github.com/davazp/graphql-mode) and
+[this brief overview](http://graphql.org/learn/) on GraphQL syntax.
diff --git a/graphql.el b/graphql.el
index aaca889459..fac829d549 100644
--- a/graphql.el
+++ b/graphql.el
@@ -76,21 +76,21 @@
(graphql--encode-list g)
(pcase (graphql--get-keys g)
(`(,keys ,graph)
- (let ((root (car graph))
+ (let ((object (car graph))
(name (alist-get :name keys))
(arguments (alist-get :arguments keys))
- (rest (cdr graph)))
+ (fields (cdr graph)))
(concat
- (symbol-name root)
+ (symbol-name object)
(when arguments
;; Format arguments "key:value, ..."
(format "(%s)"
(mapconcat #'graphql--encode-parameter-pair arguments
",")))
(when name
(format " %S") name)
- (when rest
+ (when fields
(format " { %s }"
- (mapconcat #'graphql--encode rest " ")))))))))
+ (mapconcat #'graphql--encode fields " ")))))))))
(defun graphql-encode (g)
"Encode G as a GraphQL string."
- [elpa] externals/graphql 1026c76d30 01/56: Initial commit, (continued)
- [elpa] externals/graphql 1026c76d30 01/56: Initial commit, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 9d4179cd4a 04/56: Simplify handling of fields, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 335ec3a9c5 08/56: More appropriate function names for argument encoding, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql a8067839b6 10/56: Rename `graphql--encode-argument-pair' to `*-spec', ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 1f4f1a61c9 11/56: Remove graphql-encode and replace it with graphql--encode, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql adf95c1d92 16/56: Compress output, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql f9dc451ae6 18/56: Simplify object encoding, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 0756399fc9 22/56: Test unnamed query, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql b0bd6c5fd8 02/56: Create DSL and basic encoder, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql fcc32d3d71 03/56: Simplify handling of spacing optional elements, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 3bf43e2ad1 05/56: Use real names of things,
ELPA Syncer <=
- [elpa] externals/graphql 24d278dd43 06/56: Add support for variables in object parameters, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 4d2837ddbe 07/56: Fix format bug for :name, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 210fed6a12 09/56: More appropriate name for `:name', ELPA Syncer, 2022/10/29
- [elpa] externals/graphql d299be77da 12/56: Tweak handling for numbers when encoding argument values., ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 08fb4fcf12 13/56: Add support for operation parameters via `:op-params', ELPA Syncer, 2022/10/29
- [elpa] externals/graphql da47d83cef 14/56: Add `graphql-{query, mutation}' macros, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql 22a84b1b08 15/56: Fix issue if `:op-name' and `:arguments' are given to one object, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql f43b1da554 17/56: Fix *-parameter-spec behavior when REQUIRED is omitted, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql e66ffb7743 19/56: Test suite fixes, ELPA Syncer, 2022/10/29
- [elpa] externals/graphql e755652074 23/56: Various metadata, ELPA Syncer, 2022/10/29