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 more jobs from this company!

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 Functional Works average a 15% increase in salary 🚀

Investigate automatic input and output schema detection in `attach-query` and `attach-mutation`

Pull requests: 1
Contributors: 18
Level: Intermediate
  • Clojure
  • $50
Pull requests: 1
Contributors: 18
Level: Intermediate
  • Clojure
  • $50

On GitHub

spec -> lacinia schema
More info >

Issue posted by: 
acron0's avatar

Antony

Description

It's theoretically possible to discern the schemas from the fdef (if one exists) rather than have the user supply schema.

For example, instead of (attach-query ::input ::output handler) you could just do (attach-query handler) and the function would find an fdef associated with handler, detect the :args and :ret (thanks @devurandom) and use these in place of input and output specs.

This is just sugar, really, but might help with onboarding

  • enhancement
  • help wanted
  • low priority

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

Investigate automatic input and output schema detection in `attach-query` and `attach-mutation`
View on GitHub