2

How can I do complex database queries such as joins using Sails.js?

I tried the generate method using the command line, it's great and I connected it to my MySQL database and it works great, but now what I need to understand is how I can do complex SELECT statements. I can't find it in the documentation.

0

1 Answer 1

3

For complicated queries refer to this answer by particlebanana, one of Sails.js core contributors.

As an alternative to perform joins, you can use the associations branch.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.