23 lines
712 B
Markdown
23 lines
712 B
Markdown
## Changes between 1.0.0-beta1 and 1.0.0-beta2
|
|
|
|
### 3-arity of monger.collection/find-one-as-map now takes a vector of fields
|
|
|
|
3-arity of monger.collection/find-one-as-map now takes a vector of fields
|
|
instead of `keywordize` to better fit a more commonly needed case.
|
|
|
|
``` clojure
|
|
;; 3-arity in 1.0.0-beta1
|
|
(monger.collection/find-one-as-map "documents" { :first_name "John" } false)
|
|
```
|
|
|
|
``` clojure
|
|
;; 3-arity in 1.0.0-beta2
|
|
(monger.collection/find-one-as-map "documents" { :first_name "John" } [:first\_name, :last\_name, :age])
|
|
```
|
|
|
|
|
|
If you need to use `keywordize`, use 4-arity:
|
|
|
|
``` clojure
|
|
(monger.collection/find-one-as-map "documents" { :first_name "John" } [:first\_name, :last\_name, :age] false)
|
|
```
|