We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728689b commit 9076f19Copy full SHA for 9076f19
src/toyokumo/commons/experimental/graphql/lacinia.clj
@@ -6,15 +6,15 @@
6
[com.walmartlabs.lacinia.schema :as l.schema]
7
[com.walmartlabs.lacinia.util :as l.util]))
8
9
-(defrecord Lacinia [sdl-path resolver compiled-schema]
+(defrecord Lacinia [sdl-path enable-introspection? resolver compiled-schema]
10
component/Lifecycle
11
(start [this]
12
(if-let [sdl (io/resource sdl-path)]
13
(-> sdl
14
slurp
15
l.parser.schema/parse-schema
16
(l.util/inject-resolvers (:resolvers resolver))
17
- l.schema/compile
+ (l.schema/compile {:enable-introspection? (boolean enable-introspection?)})
18
(->> (assoc this :compiled-schema)))
19
(throw (IllegalArgumentException. (str "Schema Definition Language file can not find in " sdl-path)))))
20
(stop [this]
0 commit comments