gpt4 book ai didi

angularjs - 想要在 lbservices 中使用类似的查询来获取 Angular

转载 作者:太空宇宙 更新时间:2023-11-04 02:12:44 24 4
gpt4 key购买 nike

我想查询所有以p开头的名字(不区分大小写)。下面是查询对象,Organization 是我生成的 lb-service 名称

 query = {
filter: {

order: 'updatedAt ASC',
where: {name: {ilike: 'P%'}}
};
Organisation.find({filter: query.filter})

最佳答案

您可以使用regex为此。

Organisation.find({name: {$regex: new RegExp('^P$', "i")}}).sort('updatedAt').all(function(res) {
//Do your action here..
});

关于angularjs - 想要在 lbservices 中使用类似的查询来获取 Angular ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41479777/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com