Giter Club home page Giter Club logo

Comments (5)

vectorselector avatar vectorselector commented on June 17, 2024

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"
again, i'm a noob and probably being dumb: but why are we changing mongo verbs to fit a concept called crud?
i know the general basics of rest, but I don't understand how our http req/res and url correspond implicitly to crud... IMO these are unstated assumptions that should be made explicit.

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...
but this would be good to speak about, IMO

from feathers-mongodb.

marshallswain avatar marshallswain commented on June 17, 2024

feathers-mongodb is a database adapter for Feathers, which holds maintaining fully RESTful APIs as one of its primary principles. There are a couple of people currently updating this adapter to bring it up to par with the other adapters. In the meantime, I would recommend using the feathers-mongoose adapter and turning off Mongoose schemas (which is as simple as providing an empty object as your schema, I believe.) until feathers-mongodb is updated to the new API. Turning off Mongoose schemas should make it work pretty similar to this adapter.

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

from feathers-mongodb.

daffl avatar daffl commented on June 17, 2024

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.

from feathers-mongodb.

vectorselector avatar vectorselector commented on June 17, 2024

thanks for the info, folks

from feathers-mongodb.

marshallswain avatar marshallswain commented on June 17, 2024

http://feathersjs.com might be a better introduction to see how it works and compares to Meteor, Sails, etc.

from feathers-mongodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.