This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-21
Channels
- # announcements (3)
- # aws (11)
- # babashka (5)
- # beginners (116)
- # cider (30)
- # clara (1)
- # clj-kondo (15)
- # clojure (17)
- # clojure-dev (9)
- # clojure-europe (2)
- # clojure-italy (1)
- # clojure-uk (3)
- # clojurescript (9)
- # conjure (3)
- # duct (22)
- # exercism (1)
- # fulcro (8)
- # graalvm (5)
- # graphql (3)
- # helix (3)
- # joker (3)
- # kaocha (2)
- # off-topic (9)
- # pathom (4)
- # re-frame (1)
- # rum (6)
- # shadow-cljs (81)
- # sql (6)
- # xtdb (9)
Hi! I’m trying to generate GraphQL from EQL using Pathom, and it works, mostly, flawless. Unfortunately I cannot see how to set operation name. Examples can be seen here https://graphql.org/learn/queries/
query HeroNameAndFriends {
hero {
name
friends {
name
}
}
}
query HeroNameAndFriends($episode: Episode) {
hero(episode: $episode) {
name
friends {
name
}
}
}
I can only query fields. No way to query operation by name. Am I missing something, is this functionality hidden? If it’s not, I’m more than happy to create PR to Pathom GraphQL generation@andrzej.fricze once EQL
is defined in terms of arrays/map/lists
and you can assoc
/ update
these datastructures, EQL has many less features then GraphQL
this query in Clojure will be something like
(defn HeroNameAndFriends
[episode]
`[{:HeroNameAndFriends [{(:hero {:episode ~episode})
[:name {:friends [:name]}]}]}])