This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-20
Channels
- # announcements (16)
- # babashka (104)
- # beginners (77)
- # bristol-clojurians (1)
- # calva (3)
- # chlorine-clover (50)
- # cider (19)
- # clojure (73)
- # clojure-australia (1)
- # clojure-europe (37)
- # clojure-france (3)
- # clojure-nl (3)
- # clojure-norway (13)
- # clojure-spec (21)
- # clojure-uk (79)
- # clojurescript (225)
- # conjure (102)
- # cursive (11)
- # datascript (1)
- # datomic (1)
- # defnpodcast (1)
- # events (3)
- # figwheel-main (2)
- # fulcro (49)
- # ghostwheel (10)
- # helix (1)
- # kaocha (17)
- # leiningen (10)
- # meander (1)
- # off-topic (26)
- # other-lisps (3)
- # pathom (5)
- # re-frame (40)
- # reagent (6)
- # reitit (33)
- # shadow-cljs (107)
- # testing (3)
- # tools-deps (68)
- # xtdb (16)
- # yada (3)
GraphQLize Update (#4) - Aggregate Functions & Group By https://www.graphqlize.org/blog/graphqlize-update-4/
For this, it looks like you're adding one extra field per agg function you are supporting:
(Asking because I did something similar for a different case (filters), and now I kind of regret it)
Thanks @U08JKUHA9. TBH, I went this way after trying with different approaches. I did consider this sum("rating")
but this resulted in
sum("rating") {
value
}
I do agree the field per aggregate function is not the cleanest way but I had no other better option
Love to receive your inputs / suggestions that’y I am keeping this library in alpha state and building it in public
Thanks a ton @U08JKUHA9 I just checked the GraphQL schema https://graphql.org/learn/schema/#arguments. It is possible to have arguments on fields. My Bad, I was thinking only it applies to queries and get carried along on.
I will fix it in the next release. Thanks again :)
yea this may be a good case for it, if you want to avoid the potential field "explosion"
Created an issue to keep track of it https://github.com/graphqlize/graphqlize/issues/57
Fulcro 3.2.8 is on Clojars. This version fixes an accidental regression on component indexing. https://github.com/fulcrologic/fulcro