Last active
August 29, 2015 14:19
-
-
Save donbonifacio/b48f992b461d6bb321eb to your computer and use it in GitHub Desktop.
Mongo gateway implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn save! | |
"Persists an account" | |
[account] | |
(-> (common/db) | |
(mc/save-and-return "accounts" account))) | |
(defn find-by-id | |
"Find account by given query" | |
[id] | |
(-> (common/db) | |
(mc/find-map-by-id "accounts" id))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment