-
Notifications
You must be signed in to change notification settings - Fork 42
how to insert? #23
Comments
ok, so aside from rest, i want to explicitly insert and i found out by guessing that there is a method called "create" papering over mongos "insert" in my case, i am uploading an image file via the multer package, and i want the metadata (path filename etc) to be inserted into a mongo collection at the same time as the upload (versus chunked upload directly into mongo...) so I simply added the line: mongodb({db:'feathers', collection:'masterCards'}).create(req.file); and it's working... |
Also, check out the Feathers docs here: http://docs.feathersjs.com. You can find the service methods here: http://docs.feathersjs.com/services/readme.html#service-methods |
We are working on the v2 docs at http://docs.feathersjs.com/ but how those methods correspond to REST and websocket calls should also be documented fairly detailed in the current documentation at http://feathersjs.com/docs/#toc10 and in the quick start guide. |
thanks for the info, folks |
http://feathersjs.com might be a better introduction to see how it works and compares to Meteor, Sails, etc. |
I don't see any documentation on how to actually use the db connection for inserting (not querying)
maybe i'm just being a noob but I think the docs should define how one is to use this db connection...
The text was updated successfully, but these errors were encountered: