Re: [clojure-mongodb] setOnInsert

16 views
Skip to first unread message

Michael Klishin

unread,
May 21, 2013, 4:48:03 AM5/21/13
to Monger, a Clojure MongoDB driver

Wei Hsu

unread,
May 21, 2013, 9:25:35 PM5/21/13
to clojure...@googlegroups.com
Thanks, that was it.

A followup question: for setOnInsert I'd like to have a function with some side effects that only gets evaluated on insert, currently the function is evaluated every time. Could I accomplish this in monger?

Michael Klishin

unread,
May 22, 2013, 9:55:30 AM5/22/13
to Monger, a Clojure MongoDB driver

2013/5/22 Wei Hsu <yayi...@gmail.com>

Could I accomplish this in monger?

If it is possible at all, yes. Monger is not different from
mongodb shell in this case, it just runs aggregate commands you provide.
Reply all
Reply to author
Forward
0 new messages