Add ChangeLog file, closes #8
This commit is contained in:
parent
3aa842fb04
commit
f8bb19b6ba
1 changed files with 23 additions and 0 deletions
23
ChangeLog.md
Normal file
23
ChangeLog.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
## 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)
|
||||
```
|
||||
Loading…
Reference in a new issue