Skip to content

Commit

Permalink
Fix namespace/casing in tutorial example code
Browse files Browse the repository at this point in the history
  • Loading branch information
j1mr10rd4n committed Aug 9, 2023
1 parent 54565bc commit 6f253a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/_examples/tutorial/schema-6.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns clojure-game-geek.schema
(ns my.clojure-game-geek.schema
"Contains custom resolvers and a function to provide the full schema."
(:require
[clojure.java.io :as io]
Expand All @@ -22,8 +22,8 @@
(defn rate-game
[db]
(fn [_ args _]
(let [{game-id :game_id
member-id :member_id
(let [{game-id :gameId
member-id :memberId
rating :rating} args
game (db/find-game-by-id db game-id)
member (db/find-member-by-id db member-id)]
Expand Down Expand Up @@ -79,11 +79,11 @@
(defn resolver-map
[component]
(let [db (:db component)]
{:query/game-by-id (game-by-id db)
:query/member-by-id (member-by-id db)
:mutation/rate-game (rate-game db)
{:Query/gameById (game-by-id db)
:Query/memberById (member-by-id db)
:Mutation/rateGame (rate-game db)
:BoardGame/designers (board-game-designers db)
:BoardGame/rating-summary (rating-summary db)
:BoardGame/ratingSummary (rating-summary db)
:GameRating/game (game-rating->game db)
:Designer/games (designer-games db)
:Member/ratings (member-ratings db)}))
Expand Down

0 comments on commit 6f253a4

Please sign in to comment.