You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am (was) a die hard meteor fan, after a quick intro to feathers i think its even better. However, i'm stuck at a few places....
Using the feathers generate tool, and selecting Api and rest api using socket.io, and then selecting mongodb I get the app generated and ready to use rethink-mongoose.
Having come from meteor, i am struggling to do any checking if the document already exists so that i don't insert duplicates, performing upserts, etc.
Can you please point me to any docs that address this.
In short, Where are all the db.find(), db.update(), db.... and stuff and how can i access this from the rest apis?
The text was updated successfully, but these errors were encountered:
The database interactions in Feathers are done through the service interface and the database adapter which all implement that interface.
Checking if an entry exists (and potential upserts) can be accomplished through Hooks which execute before or after any of the service methods runs. For example, a hook that checks for duplicate emails can look like this:
Hey @ekryski newbie questions here,
So I am (was) a die hard meteor fan, after a quick intro to feathers i think its even better. However, i'm stuck at a few places....
Using the feathers generate tool, and selecting
Api
andrest api using socket.io
, and then selectingmongodb
I get the app generated and ready to use rethink-mongoose.Having come from meteor, i am struggling to do any checking if the document already exists so that i don't insert duplicates, performing upserts, etc.
Can you please point me to any docs that address this.
In short, Where are all the db.find(), db.update(), db.... and stuff and how can i access this from the rest apis?
The text was updated successfully, but these errors were encountered: