This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-22
Channels
- # beginners (124)
- # boot (7)
- # cider (73)
- # cljs-dev (37)
- # cljsrn (6)
- # clojure (85)
- # clojure-greece (4)
- # clojure-italy (67)
- # clojure-nl (6)
- # clojure-russia (4)
- # clojure-spec (6)
- # clojure-uk (48)
- # clojurescript (26)
- # cursive (5)
- # data-science (23)
- # datomic (63)
- # editors (5)
- # emacs (4)
- # graphql (13)
- # immutant (2)
- # lumo (4)
- # mount (3)
- # off-topic (1)
- # onyx (4)
- # pedestal (7)
- # portkey (10)
- # re-frame (14)
- # reagent (10)
- # ring-swagger (18)
- # shadow-cljs (97)
- # spacemacs (1)
- # tools-deps (9)
- # vim (1)
- # yada (13)
Another question~ more specific to GraphQL In GraphQL if I wanted to build a query list all games what would that query look like?
You gave to name all your queries explicitly, so yes you need a resolver for every query.
{:BoardGame
(Put resolver here?)
{:description "A physical or virtual board game."
:fields
{:id {:type (non-null ID)}
:name {:type (non-null String)}
:rating_summary {:type (non-null :GameRatingSummary)
:resolve :BoardGame/rating-summary}
:summary {:type String
:description "A one-line summary of the game."}}}
Where would I exactly put it?So when I write a query like
:get_all_games
{:type (list :BoardGame)
:resolve :query/all-games}