We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the current query builder i can perform something like
const users = await User.query().select('first_name','last_name','username','status','email') .orderBy(inputdata.order_by, inputdata.mode)
In some situations you may need to run the orderBy only if inputdata.orderby is not null.
So am thinking of something like
const users = User.query().select('first_name','last_name','username','status','email') if(inputdata.order_by){ users.orderBy(inputdata.order_by, inputdata.mode) }
In the documentation i cannot find a similar way to achieve the above? Is this already there?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the current query builder i can perform something like
In some situations you may need to run the orderBy only if inputdata.orderby is not null.
So am thinking of something like
In the documentation i cannot find a similar way to achieve the above? Is this already there?
The text was updated successfully, but these errors were encountered: