This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-11
Channels
- # announcements (3)
- # babashka (62)
- # beginners (58)
- # calva (40)
- # cider (3)
- # clj-kondo (75)
- # cljdoc (14)
- # clojars (8)
- # clojure (110)
- # clojure-australia (6)
- # clojure-europe (38)
- # clojure-hungary (1)
- # clojure-india (4)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-spec (4)
- # clojure-uk (3)
- # clojurescript (45)
- # conjure (4)
- # cursive (35)
- # data-science (1)
- # datomic (11)
- # events (2)
- # exercism (4)
- # figwheel-main (4)
- # fulcro (103)
- # graphql (16)
- # helix (1)
- # holy-lambda (16)
- # honeysql (1)
- # introduce-yourself (3)
- # jobs (1)
- # keyboards (2)
- # lsp (4)
- # malli (11)
- # membrane-term (3)
- # mount (2)
- # nextjournal (2)
- # off-topic (53)
- # pathom (30)
- # pedestal (2)
- # portal (22)
- # rdf (1)
- # re-frame (7)
- # reagent (3)
- # reitit (5)
- # remote-jobs (6)
- # shadow-cljs (20)
- # sql (8)
- # tools-build (10)
- # vim (4)
- # xtdb (12)
FYI; Lacinia still states beta status in the readme, while there's a 1.0 release for a while now 🙂
Hi! Does anyone know if there is a function or library that can convert from an graphql schema defined in edn to a SDL-schema? Or maybe extraxt an SDL-schema from a graphql rest endpoint somehow.
You can run an introspection query to get the schema. Most GraphQL explorers come with one. Here's an example: https://gist.github.com/craigbeck/b90915d49fda19d5b2b17ead14dcd6da
Thank you! I'll check it out :)
Introspection queries don't support directives though; so you may have to copy them over by hand. at least, unless someone knows about a edn->sdl library 😬
Yeah I had to remove the directives part to get it to respond. The thing is I'm trying to generate a Java client to my graphql API, with this maven project. https://github.com/graphql-java-generator/graphql-maven-plugin-project But it uses graphqls files.
I seem to be unable to extend unions: I'm trying to extend union MyUnion = ExtraType
but it results in
{:type clojure.lang.ExceptionInfo,
:message "Failed to parse GraphQL schema.",
:data {:errors ({:locations [{:line 1, :column nil}],
:message "no viable alternative at input 'extendunion'"})}
Is this not supported in lacinia :thinking_face: ?only input-types and types seem supported: https://github.com/walmartlabs/lacinia/blob/e483dfcfd9bf23e24f5d2d3715abd9a1e3734782/resources/com/walmartlabs/lacinia/schema.g4#L92-L94 https://github.com/walmartlabs/lacinia/blob/e483dfcfd9bf23e24f5d2d3715abd9a1e3734782/resources/com/walmartlabs/lacinia/schema.g4#L76-L78
Adding extend union
-support was easy enough. I could create a PR if anyone is interested
Adding extend union
-support was easy enough. I could create a PR if anyone is interested