This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-22
Channels
- # announcements (2)
- # asami (123)
- # aws (17)
- # babashka (77)
- # babashka-sci-dev (23)
- # beginners (48)
- # biff (6)
- # calva (35)
- # cider (16)
- # clj-on-windows (1)
- # clj-yaml (19)
- # clojure (36)
- # clojure-europe (78)
- # clojure-nl (5)
- # clojure-norway (8)
- # clojure-poland (3)
- # clojure-uk (16)
- # clojurescript (17)
- # cursive (6)
- # datahike (3)
- # datalevin (26)
- # duct (7)
- # emacs (41)
- # events (2)
- # fulcro (7)
- # graphql (5)
- # honeysql (13)
- # juxt (3)
- # kaocha (7)
- # lsp (5)
- # malli (12)
- # off-topic (14)
- # pathom (3)
- # portal (1)
- # rdf (9)
- # reitit (3)
- # remote-jobs (2)
- # shadow-cljs (37)
- # spacemacs (5)
- # tools-build (1)
- # tools-deps (20)
- # xtdb (2)
I’m consolidating the app features into the landing page (home.clj) so that the user will show as ‘logged in’ or as ‘guest’ in a navbar… does that technically make this a single page app? Is it already one?
guess so!
Haha… fair enough. The lines blurred long ago, I suppose.
I’m not sure what I’m doing wrong, but when running
(def dbnode (:biff.xtdb/node @com.biffweb/system))
(map first
(xt/q dbnode
'{:find [email]
:where [[user :user/email email]]}))
I’m getting
1. Unhandled java.lang.IllegalArgumentException
No implementation of method: :q* of protocol:
#'xtdb.api/PXtdbDatasource found for class: xtdb.node.XtdbNode
core_deftype.clj: 583 clojure.core/-cache-protocol-fn
core_deftype.clj: 575 clojure.core/-cache-protocol-fn
api.clj: 139 xtdb.api/eval7763/fn/G
api.clj: 366 xtdb.api/q
api.clj: 360 xtdb.api/q...
(dbnode evals to #<XtdbNode>)
You're passing a node to q
when you should be passing a db. do this instead: (xt/q (xt/db dbnode) ...
badaboom. 😄