Function: ghub--prepare-mutation
ghub--prepare-mutation is a natively compiled function defined in
forge-client.el.
Signature
(ghub--prepare-mutation MUTATION &optional VAR)
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-client.el
(defun ghub--prepare-mutation (mutation &optional var)
`(mutation
(,mutation
[(input ,(if var (intern (format "$%s" var)) '$input)
,(let ((name (symbol-name mutation)))
(intern (format "%s%sInput!"
(upcase (substring name 0 1))
(substring name 1)))))]
;; We ignore the payload, but GraphQL requires that at least one
;; field is specified. On Github this field is available for all
;; mutations. On Gitlab there is no field that is available for
;; all mutations, but luckily using an invalid fields does not
;; result in an error.
clientMutationId)))