有人知道是否可以使用回环中的“中间”创建查询,类似于以下内容:
select ...
where value BETWEEN column1 and column2因为回环文档解释了如何使用“介于”,但以这种方式:
{where: {size: {between: [0,7]}}}, // where column between value and value 谢谢。
发布于 2018-05-11 22:10:02
根据这一点:https://loopback.io/doc/en/lb2/Where-filter.html#node-api
用结构{where: {property: {op: value}}}构造的回环中的where查询,他们称之为value is a literal value
要实现您正在做的事情,执行原生SQL将是最好的选择:https://loopback.io/doc/en/lb2/Executing-native-SQL.html
https://stackoverflow.com/questions/50300004
复制相似问题