keechma

Keechma stack. Mention @U050986L9 or @U2J1PHYNM if you have any questions
ferossgp 2020-08-11T11:55:57.051800Z

Hey! πŸ‘‹ I have a question on keechma-entitydb In this example https://github.com/keechma/keechma-entitydb#querying-relationships If I want to add to this entity a new link later

{:id 1
 :title "Note #1"
 :links [{:id 1
          :url "<http://www.google.com>"}
         {:id 2
          :url "<http://www.yahoo.com>"}]} 
Should I insert the new again including the vector of 3 links (2 old, and the new one), or is there a way to prepend/append directly?

mihaelkonjevic 2020-08-11T19:31:04.053300Z

@ferossgp the expectation is to insert a vector of 3 links. Entitydb will replace whatever is on the :links key with a new collection. We don’t have a prepend / append functionality atm, but it could probably be built pretty easily. Can you open an issue for that on the repo?

πŸ‘ 1