Closed acron0 closed 5 years ago
Until this is fixed, the workaround is to add ::query-args
to Leona's specs
manually before compiling the schema.
Like this:
(-> (leona/create)
(leona/attach-query ::query-args ::my-object some-handler)
(update :specs conj ::query-args) ; <- workaround
(leona/compile))
For example
... will fail, because
::my-query-enum
does not appear in the:enums
map of the generated schema.Error: