Skip to content

Instantly share code, notes, and snippets.

@paultag
Last active December 15, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save paultag/5188459 to your computer and use it in GitHub Desktop.
Save paultag/5188459 to your computer and use it in GitHub Desktop.
hy + pymongo
(import-from pymongo Connection)
(def connection (Connection "localhost" 27017) "test")
(def db connection.test)
(def hello db.test)
(for [x (.find hello {"hello" {"$exists" true}})]
(print (get x "hello")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment