emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/graphql 210fed6a12 09/56: More appropriate name for `:n


From: ELPA Syncer
Subject: [elpa] externals/graphql 210fed6a12 09/56: More appropriate name for `:name'
Date: Sat, 29 Oct 2022 13:57:52 -0400 (EDT)

branch: externals/graphql
commit 210fed6a12d7d779742c6cca907c1d0ba7b7293a
Author: Sean Allred <code@seanallred.com>
Commit: Sean Allred <code@seanallred.com>

    More appropriate name for `:name'
    
    To my understanding, only queries/mutations can be given names.  I've
    abstracted the two into an idea of an 'operation'; thus `:op-name'.
---
 graphql.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphql.el b/graphql.el
index 88398e69a6..67f362f7bc 100644
--- a/graphql.el
+++ b/graphql.el
@@ -79,7 +79,7 @@
       (pcase (graphql--get-keys g)
         (`(,keys ,graph)
          (let ((object (car graph))
-               (name (alist-get :name keys))
+               (name (alist-get :op-name keys))
                (arguments (alist-get :arguments keys))
                (fields (cdr graph)))
            (concat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]