sails.js Blueprint query by relations
问题 I'm running sails 0.10.5 with postgresql support and I want to ask if there is any way to do a query to filter results by relations. For example: http://api/documents?user.role=Admin Or http://api/documents?where={"user.role": "Admin"} Or http://api/documents?where={"user.role": {"like": "%Admin%"}} Where a model Document has a belongsTo relation to User which has an attribute called role (string f.e.). I wasn't able to do such query, Am I missing something? Thank you! 回答1: I don't think that