Replies: 2 comments 1 reply
-
How about |
Beta Was this translation helpful? Give feedback.
-
User this
|
Beta Was this translation helpful? Give feedback.
-
How about |
Beta Was this translation helpful? Give feedback.
-
User this
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
After testing Adonisjs for a while, I really love it. There's one small 'issue' when using the findBy and findByOrFail function on models:
I really would like to pass in an object with search criteria, in stead only passing one value only.
`
const payload = {id: 2, tenantId: 1};
const user = await User.findOrFail(payload);
`
It's not possible to use the user.merge({...}) function when querying with the User.query(), because it's not using the model directly.
Or maybe there's another way to query on multiple selectors and still use the .merge() function?
Beta Was this translation helpful? Give feedback.
All reactions