Nikita Prokopov

Results 814 comments of Nikita Prokopov

No worries, it’s literally a single button click in github. Thanks for reporting!

I’m pretty sure recursive rules have worked before. Interesting!

Yes, seems like a bug here https://github.com/tonsky/datascript/blob/f18db4e595692603e7c0904b7d0ef96837d586da/src/datascript/query.cljc#L580-L586 It tries to rename rule vars based on if symbol starts with a `?`, not on actual arguments list

you can try explicitly pass fn as an argument to the rule. Might work, might not

You can always pass your own fn to the query: ``` (def db (-> (d/empty-db {:friend {:db/type :db.type/ref :db/cardinality :db.cardinality/many}}) (d/db-with [{:db/id 1, :name "1", :friend [2 3]} {:db/id 2,...

This worked for me ``` (require '[datascript.core :as d]) (def db (-> (d/empty-db) (d/db-with [{:db/id 1 :widget/name "a"} {:db/id 2 :widget/name "b"} {:db/id 3 :widget/name "c"} {:db/id 1 :gadget/name "x"}...

Well this should work. Thanks for reporting, I’ll take a look later

are you up for building it?

Yeah, thanks! On Tue, Jan 23, 2018 at 10:57 PM Richard Newman wrote: > There's a chance, but no commitment from me! Figured it was worth filing > an issue...

Hm, so you’re trying storing JS object as a value. Not gonna work at the moment — DS does total JS to CLJ conversion under the hood of JS API....