-
I'm trying to figure out how to integrate matchbox with re-frame. Do you have any tips or pointers please? I'd be happy to push out an example for documentation.
-
For an input-form, i save all data in entity with :db/id 1.
Before the form gets displayed, i load all form-data into this entity.
From this point, the entity-nr 1 will represent the form data.
When…
-
When using CLJS version 3291 or later
```
WARNING: uuid already refers to: cljs.core/uuid being replaced by: cognitect.transit/uuid at line 337 file:/Users/prokopov/.m2/repository/com/cognitect/trans…
-
Tried to use it from JVM, no go :-)
CompilerException java.lang.RuntimeException: No such var: clojure.core/require-macros, compiling:(datascript/query.cljc:1:1)
gtrak updated
9 years ago
-
For this example, a simple rule is not working, and i do not know why.
At first the working example, and then the same task with a rule.
Example:
The last from the first task-list matches the first f…
-
I would like to use an or-clause, but since it is not yet available in datascript, is there a way i can express this in another way? (in datalog)
``` cljs
(defn find-combinations [db selected-eid]
;…
-
``` cljs
(d/q '[:find ?a
:in $
:where [?a :foo 1]]
[[1 :foo 1]])
;; => #{[1]}
(d/q '[:find ?a
:in $x
:where [?a :foo 1]]
[[1 :foo 1]])
;; => #…
-
If we have wildcard and something else in a pull spec, something else should be merged on top of wildcard pull:
```
(deftest test-pull-wildcard
(is (= {:db/id 2 :name "David" :_child [{:db/id 1}]}
…
-
Hi,
I'm struggling to use d.init_db and create a schema at the same time like so:
d.init_db([[1, "name", "Ivan"],[1, "age", 17],[2, "name", "Igor"],[2, "age", 35][1, "friend", 2]], [{"friend": {":db…
-
I'm trying to validate Datascript entities using Prismatic Schema. Try the following:
``` clojure
(ns xxx
(:require
[datascript :as data]
[schema.core :as s :include-macros true]))
(s/de…