Fork me on GitHub
#graphql
<
2021-09-04
>
husayn22:09:23

Hello, any body using lacinia successfully transitioned to apollo graphql federation as described here https://lacinia.readthedocs.io/en/latest/federation/implementation.html? My current code looks like this

(-> graphql-schema-edn-file
    io/resource
    slurp
    edn/read-string
    (attach-scalar-transformers transformers)
    (attach-resolvers resolvers)
    (schema/compile {:promote-nils-to-empty-list? true}))
Are there any helper functions that allow me keep my edn schema file? If I convert my edn schema file to a raw graphql sdl file, can I still use the attach-* helpers? ā€¦ ultimately can anyone who is using graphql federation on a big project share how the equivalent block of code above looks for them šŸ™