Thursday, 15 September 2011

clojure - Append new data to entity in Datomic -


In an attempt to update the database tag data on posts I have a function that looks

 Cancel  (AD-Tag-to-Post [E-mail E-mail] (D / Transit Con [[:: DB / ID EID, Author / Email Email, Post / Tag Tags]]) < Unfortunately, this does not preserve the tag (unless I ask for a timeline). I want to add a new tag to the list instead of just writing it  

Examples Title: "Straight Edges" Title: Content "Fold it instead of tearing.",: "Scissor-less edges";;; Exclude these awesome tags: Author " Me@website.hax ": eid 1759} (Add-Tag-to-Post 1759" Me @ Websites. "" Art ");; Desired Behavior: Adds the" Art "tag to the list Tags (get-post-by- Eid 1759); Returns {Title: "Straight Edges" ,: Ingredients "Fold it instead of tearing it.",: "Art",;; Do not add cumulative tags; /: Author "Me@website.hax": eid 1759}

How to get it Can be done?

P> In your : post / tag attribute : Cardinality / Too many - : db / cardinality view will be required.

By default, the attributes have : cardinality / a , when they automatically retrieve the overwritten old values. : cardinality / many cancels that behavior.


No comments:

Post a Comment