Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monger find-maps not returning any items in the collection #204

Open
zendevil opened this issue Dec 18, 2020 · 0 comments
Open

Monger find-maps not returning any items in the collection #204

zendevil opened this issue Dec 18, 2020 · 0 comments

Comments

@zendevil
Copy link

I'm using the monger database, which is showing the results from the find function. It's showing the results as empty even though I have items in my database. Here's the code:

(ns humboiserver.db.core
  (:require
   [monger.core :as mg]
   [monger.gridfs :as gfs]
   [monger.query :as q]
   [monger.collection :as mc]
   [cheshire.core :as json]
   )
  (:import
   org.bson.types.ObjectId))

(let [{:keys [conn db]}
      (mg/connect-via-uri "mongodb+srv://user:[email protected]/<dbname>?retryWrites=true&w=majority")]
  (defn find [coll query] (mc/find-maps db coll query))

Here's the usage:

 (db/find "featured" {})

And here's the featured database:

enter image description here

Yet doing the find is returning an empty sequence. How to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant