Skip to content

Commit c169be7

Browse files
committed
Rewrite defgraphql macro so it does parsing in Clojure land when using from ClojureScript. Bump verison
1 parent 6a01861 commit c169be7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject floatingpointio/graphql-builder "0.1.7"
1+
(defproject floatingpointio/graphql-builder "0.1.8"
22
:description "A Clojure(Script) library designed to help with the consuming of GraphQL APIs."
33
:url "https://github.com/retro/graphql-builder"
44
:license {:name "MIT"

src/graphql_builder/parser.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
(or (io/resource file) file))))
1717

1818
(defmacro defgraphql [name & files]
19-
`(let [parsed# (parse (str/join "\n" (map read-file [~@files])))]
20-
(def ~name parsed#)))
19+
(let [parsed (parse (str/join "\n" (map read-file files)))]
20+
`(def ~name ~parsed)))

0 commit comments

Comments
 (0)