No need to escape underscores here [ci skip]
This commit is contained in:
parent
b2b0f12aaa
commit
c04df6e58c
1 changed files with 2 additions and 2 deletions
|
|
@ -12,12 +12,12 @@ instead of `keywordize` to better fit a more commonly needed case.
|
||||||
|
|
||||||
``` clojure
|
``` clojure
|
||||||
;; 3-arity in 1.0.0-beta2
|
;; 3-arity in 1.0.0-beta2
|
||||||
(monger.collection/find-one-as-map "documents" { :first_name "John" } [:first\_name, :last\_name, :age])
|
(monger.collection/find-one-as-map "documents" { :first_name "John" } [:first_name, :last_name, :age])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
If you need to use `keywordize`, use 4-arity:
|
If you need to use `keywordize`, use 4-arity:
|
||||||
|
|
||||||
``` clojure
|
``` clojure
|
||||||
(monger.collection/find-one-as-map "documents" { :first_name "John" } [:first\_name, :last\_name, :age] false)
|
(monger.collection/find-one-as-map "documents" { :first_name "John" } [:first_name, :last_name, :age] false)
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue