We use cookies and other tracking technologies to improve your browsing experience on our site, analyze site traffic, and understand where our audience is coming from. To find out more, please read our privacy policy.

By choosing 'I Accept', you consent to our use of cookies and other tracking technologies.

We use cookies and other tracking technologies to improve your browsing experience on our site, analyze site traffic, and understand where our audience is coming from. To find out more, please read our privacy policy.

By choosing 'I Accept', you consent to our use of cookies and other tracking technologies. Less

We use cookies and other tracking technologies... More

Login or register
to apply for this job!

Login or register to start contributing with an article!

Login or register
to see the full job description!

Login or register
to boost this post!

Show some love to the author of this blog by giving their post some rocket fuel 🚀.

Login or register to search for your ideal job!

Login or register to start working on this issue!

Engineers who find a new job through Blockchain Works average a 15% increase in salary 🚀

Leona doesn't extract enums from input specs which leads to compile failure

Issue closed
Pull requests: 1
Contributors: 1
Level: Intermediate
  • Clojure
Issue closed
Pull requests: 1
Contributors: 1
Level: Intermediate
  • Clojure

On GitHub

spec -> lacinia schema
More info >

Issue posted by: 
acron0's avatar

Antony

Description

For example

(s/def ::my-value int?)
(s/def ::my-object (s/keys :req-un [::my-value]))
(s/def ::my-query-enum #{"foo" "bar" "baz"})
(s/def ::query-args (s/keys :req-un [::my-query-enum]))

(-> (leona/create)
    (leona/attach-query ::query-args ::my-object some-handler)
    (leona/compile))

... will fail, because ::my-query-enum does not appear in the :enums map of the generated schema.

Error:

Argument `my_query_enum' of field `QueryRoot/my_object' references unknown type `my_query_enum'.
  • bug
  • good first issue
  • help wanted

Use Open Source Issues to hire or get hired

On GitHub

spec -> lacinia schema
More info >

Issue posted by: 
acron0's avatar

Antony

Use Open Source Issues to hire or get hired

Leona doesn't extract enums from input specs which leads to compile failure
View on GitHub