graphql

pcj 2019-11-06T17:04:24.056900Z

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

pcj 2019-11-07T21:50:50.066300Z

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

pcj 2019-11-06T17:13:43.057200Z

I'm assuming this is the go to: https://github.com/district0x/graphql-query?

pcj 2019-11-07T21:51:08.066500Z

Cool, thanks for the response!

gklijs 2019-11-06T20:25:09.057500Z

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

domkm 2019-11-06T20:32:39.057700Z

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

isak 2019-11-06T21:41:29.059700Z

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)

chrisulloa 2019-11-06T21:45:16.060600Z

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

chrisulloa 2019-11-06T21:45:26.060900Z

that leverages the same schema

chrisulloa 2019-11-06T21:45:33.061100Z

instead of trying to modify the root type

isak 2019-11-06T21:49:39.061900Z

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

isak 2019-11-06T22:45:34.062800Z

Oh, it is in the docs: https://lacinia.readthedocs.io/en/latest/roots.html#root-object-names

gklijs 2019-11-06T23:59:06.063700Z

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