mongodb-rest

    4熱度

    1回答

    我正在分岔/嘗試瞭解mongodb-rest項目。當我運行的只有rest.js腳本我得到這個錯誤: TypeError: Cannot read property 'ObjectID' of undefined at app.post.connection.connect.res.status.json.message (/var/lib/openshift/5556b4c4fcf933

    0熱度

    1回答

    蒙戈集合具有以下數據... { "_id" : "Sims", "count" : 32 } { "_id" : "Autumn", "count" : 35 } { "_id" : "Becker", "count" : 35 } { "_id" : "Cecile", "count" : 40 } { "_id" : "Poole", "count" : 32 } { "_id" :

    0熱度

    1回答

    我使用以下代碼從MongoDB休息服務獲取響應。但它給錯誤 未捕獲的SyntaxError:意外的標記: 我一直在使用命令 mongod --rest --jsonp 繼啓用REST服務在MongoDB是爲Ajax調用代碼: $.ajax({ type: 'GET', url: "myDB/myCollection/", dataType: 'jsonp'