strongloop - MongoDB db.User.find() vs db.users.find() -


when register user strongloop api example:

https://docs.strongloop.com/display/public/lb/introduction+to+user+model+authentication

it registers user can via mongodb shell: db.user.find()

but when try get via ajax using:

http://localhost:7777/api/user 

using express router:

router.route("/user/:id?") 

i different document can access through mongodb shell through:

db.users.find() 

now, @ least it's case sensitive, how same namespace give me different resource?

also posting through same /api/user ends under db.users , not db.user

** update **

i've tried other endpoints other user/user , seems can't case sensitive documents via web request, strange, because getting right api/user capital...

also, i'm using mongoose data modelling, maybe there's fault.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -