Skip to content

Commit

Permalink
docs(readme): add (schema/compile) to hello-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Nov 27, 2023
1 parent a6215b9 commit 85dc231
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 85dc231

Please sign in to comment.