congomongo

    0熱度

    1回答

    我有一個簡單的應用程序,應該從Mongo數據庫返回單個記錄。 (def movie (m/fetch-one :movie :where {:_id id})) id是正確的,但我一直得到nil作爲回報。 這是我:_id模樣 :_id #<ObjectId 5245ca7d44aed3e864a1c830> 如何我想我的問題是這裏的某個地方,但我只是沒有使用Clojur

    0熱度

    1回答

    我想查詢包含通過窗體傳遞的部分標題的文檔的Mongodb。 (defn findmovie "Find movie by query" [query] (def search (str "#.*" (url-decode query) ".*")) (println search) (def movies (m/fetch :movie :where {:name {:$regex se

    0熱度

    1回答

    如何在Congomongo查詢中使用MongoDB $in query operator?這是我不成功的猜測 - 我無法在任何地方查詢語法上找到文檔。 (fetch :solutions :where {:user {:in [1 2 3]}})