This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-06
Channels
- # announcements (16)
- # aws (9)
- # babashka (76)
- # beginners (92)
- # boot (1)
- # cider (18)
- # clara (7)
- # clj-kondo (26)
- # clojure (104)
- # clojure-europe (4)
- # clojure-nl (11)
- # clojure-spec (11)
- # clojure-survey (101)
- # clojure-uk (35)
- # clojuredesign-podcast (18)
- # clojurescript (8)
- # core-async (29)
- # data-science (1)
- # datomic (13)
- # emacs (4)
- # fulcro (20)
- # graalvm (14)
- # instaparse (2)
- # jobs (1)
- # juxt (6)
- # malli (5)
- # off-topic (30)
- # onyx (3)
- # planck (1)
- # project-updates (7)
- # re-frame (38)
- # reagent (30)
- # reitit (14)
- # remote-jobs (2)
- # shadow-cljs (50)
- # sql (8)
I am applying a basic rule saying
(defrule missing-information
[?event <- Event (nil? flower-id) (= ?id _id)]
=>
(insert! ->AddError _id :error "Missing Flower _id"))
for some reason, I have a Record with flower-id and it clara still telling me the flower-id is missing
@contact904 do you have more than one Event? Are you saying an Event with a non-nil flower-id and a unique _id is being matched with the above rule which insets the AddError fact? Your ->AddError syntax seems incorrect since it isn’t calling the fn to but guessing that this is maybe pseudo-code
AddError is a new Record with fields _id, error, value
it is close to a pseudo-code
I am confused because I have been usings this rule for a long time, this is the first time I get this error
I see what is my problem. I have similar _id;s
@contact904 (insert! ->AddError _id :error "Missing Flower _id")
is missing parens was my comment on syntax
(insert! (->AddError _id :error "Missing Flower _id"))