Fork me on GitHub
#graphql
<
2019-11-06
>
pcj17:11:24

Is there a library that helps with dynamic query composition for cljs clients?

domkm20:11:39

You shouldn't need to dynamically compose queries usually. You can dynamically select/ignore parts of queries using the @include and @skip directives.

pcj21:11:50

Thanks! I'm still new to graphql and haven't viewed all of its features yet. Will use this going forward

gklijs20:11:09

Yes, and to actually send the query you can use re-graph

pcj21:11:08

Cool, thanks for the response!

isak21:11:29

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)

chrisulloa21:11:16

You could also possibly expose a new graphql endpoint in your service? “/graphql” to “/v2/graphql”

chrisulloa21:11:26

that leverages the same schema

chrisulloa21:11:33

instead of trying to modify the root type

isak21:11:39

I've been exposing historical schemas, so that would still break the normal schema comparison tools

gklijs23:11:06

All talks from GraphQL Summit are online, including two using Clojure. https://www.youtube.com/playlist?list=PLpi1lPB6opQyraZSmwFre_FpL00_3nTzV