orderBy to accept array of strings instead
Closed this issue ยท 2 comments
pisethx commented
In the documents, it says:
await Model.orderBy('-created_at', 'category_id')
is it possible to somehow pass an array of strings as the args?
JoaoPedroAS51 commented
Hi @rancou! You can use the spread syntax:
await Model.orderBy(...myArray)
github-actions commented
๐ This issue has been resolved in version 1.8.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐