Skip to content

Commit

Permalink
Merge pull request #141 from Mohammer5/fix-readme-example
Browse files Browse the repository at this point in the history
docs(readme): add `(schema/compile)` to `hello-schema`
  • Loading branch information
hlship authored Dec 8, 2023
2 parents a6215b9 + 85dc231 commit 8db03e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ generate a service, then invoke `io.pedestal.http/create-server` and `/start`.
;; String is quoted here; in EDN the quotation is not required
;; You could also use :String
{:hello {:type 'String}}}}}
(util/inject-resolvers {:Query/hello (constantly "hello")})))
(util/inject-resolvers {:Query/hello (constantly "hello")})
(schema/compile)))

;; Use default options:
(def service (lp/default-service hello-schema nil))
Expand Down

0 comments on commit 8db03e5

Please sign in to comment.