diff --git a/docs/_examples/tutorial/schema-6.clj b/docs/_examples/tutorial/schema-6.clj index e165f3a8..0e7ea015 100644 --- a/docs/_examples/tutorial/schema-6.clj +++ b/docs/_examples/tutorial/schema-6.clj @@ -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] @@ -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)] @@ -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)})) diff --git a/docs/_examples/tutorial/user-1.clj b/docs/_examples/tutorial/user-1.clj index 9bffdf21..d4046306 100644 --- a/docs/_examples/tutorial/user-1.clj +++ b/docs/_examples/tutorial/user-1.clj @@ -1,6 +1,6 @@ (ns user (:require - [clojure-game-geek.schema :as s] + [my.clojure-game-geek.schema :as s] [com.walmartlabs.lacinia :as lacinia])) (def schema (s/load-schema)) diff --git a/docs/tutorial/init-schema.rst b/docs/tutorial/init-schema.rst index bf0b3a3e..c1422d18 100644 --- a/docs/tutorial/init-schema.rst +++ b/docs/tutorial/init-schema.rst @@ -198,7 +198,7 @@ In the next chapter, we'll build on this modest start, introducing more schema t .. [#internal] Internally, `everything` is converted to keywords, so if you prefer - to use symbols everywhere, nothing will break. Conversion to keyboards is one part of the schema compilation + to use symbols everywhere, nothing will break. Conversion to keywords is one part of the schema compilation process. .. [#spec] Because the input schema format is so complex, it is `always` validated diff --git a/docs/tutorial/member-ratings.rst b/docs/tutorial/member-ratings.rst index e152ae13..1d989acd 100644 --- a/docs/tutorial/member-ratings.rst +++ b/docs/tutorial/member-ratings.rst @@ -75,7 +75,7 @@ We need the server started after the component refactoring:: First, select the rating summary data for a game:: - (q "{ gameById(icd: \"1237\") { name ratingSummary { count average }}}") + (q "{ gameById(id: \"1237\") { name ratingSummary { count average }}}") => {:data {:gameById {:name "7 Wonders: Duel", :ratingSummary {:count 3, :average 4.333333333333333}}}}