(insert! id attr->value)

(insert! id attr value)

Equivalent to: (o/reset! (o/insert o/*session* id attr value))

Source

(defn insert! "Equivalent to:\n \n (o/reset! (o/insert o/*session* id attr value))" ([id attr->value] (run! (fn [[attr value]] (insert! id attr value)) attr->value)) ([id attr value] (if *mutable-session* (vswap! *mutable-session* insert id attr value) (throw (ex-info "This function must be called in a :then or :then-finally block" {})))))