Describe the feature
While we wait for the possibility of https://github.com/vuex-orm/plugin-search being ported to pinia-orm..
I tried doing something like this:
useRepo(Project).query().where('name', 'like', `%${this.query}%`).get();
I didn't get any errors, but it also didn't work.
It would be nice if you could add a whereLike helper.
I ended up going with this
useRepo(Project).query().where('name', (value) => {
return value.toLowerCase().includes(this.query.toLowerCase());
}).get();
Which works well enough..
Thanks!
Additional information
Final checks
Describe the feature
While we wait for the possibility of https://github.com/vuex-orm/plugin-search being ported to pinia-orm..
I tried doing something like this:
I didn't get any errors, but it also didn't work.
It would be nice if you could add a
whereLikehelper.I ended up going with this
Which works well enough..
Thanks!
Additional information
Final checks