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
Hi Diego, I love your boilerplate (Yeoman Generator Rest), but I have a "question" that I can't solve...
I need to customize a Schema, something like this:
const customSchema = new QuerymenSchema({
sort: '-LastModified', // this change the default order
IdUser: '5819c860072c1d156cfec382' // this is the field I need to change
}, {
page: false,
limit: false
})
The purpose of that, if get the resource of an endpoint but JUST of the owner user... How can I solve this with querymen?
This is the output of Moongose:
myCollection.find({ IdUser: '5819c860072c1d156cfec382' }, { sort: { LastModified: -1 }, fields: {} })
Everything is ok, but I need to change the IdUser for the current user logged. I think this is a typical approach ;)
Thanks for your work, is excellent!
The text was updated successfully, but these errors were encountered:
Hi Diego, I love your boilerplate (Yeoman Generator Rest), but I have a "question" that I can't solve...
I need to customize a Schema, something like this:
The purpose of that, if get the resource of an endpoint but JUST of the owner user... How can I solve this with querymen?
This is the output of Moongose:
myCollection.find({ IdUser: '5819c860072c1d156cfec382' }, { sort: { LastModified: -1 }, fields: {} })
Everything is ok, but I need to change the IdUser for the current user logged. I think this is a typical approach ;)
Thanks for your work, is excellent!
The text was updated successfully, but these errors were encountered: