Is there a library that helps with dynamic query composition for cljs clients?
Thanks! I'm still new to graphql and haven't viewed all of its features yet. Will use this going forward
I'm assuming this is the go to: https://github.com/district0x/graphql-query?
Cool, thanks for the response!
Yes, and to actually send the query you can use re-graph
You shouldn't need to dynamically compose queries usually. You can dynamically select/ignore parts of queries using the @include
and @skip
directives.
Is it possible to change the name of the root types in lacinia? I want to change 'QueryRoot' to 'Query', so that I can rewrite a service, yet have the exact same schema as the old one. (I think this is also more standard GraphQL)
You could also possibly expose a new graphql endpoint in your service? “/graphql” to “/v2/graphql”
that leverages the same schema
instead of trying to modify the root type
I've been exposing historical schemas, so that would still break the normal schema comparison tools
Oh, it is in the docs: https://lacinia.readthedocs.io/en/latest/roots.html#root-object-names
All talks from GraphQL Summit are online, including two using Clojure. https://www.youtube.com/playlist?list=PLpi1lPB6opQyraZSmwFre_FpL00_3nTzV