По-видимому, единственный способ - создать ловушку before и установить пользовательскую переменную:
function(context) {
const { query } = context.params;
if(query.timeSinceCreated) {
query.updatedAt = {
$gt: sequelize.col('createdAt') // + 1 day
}
// delete the special variable so it's not used in the query
delete query.timeSinceCreated;
}
}
, чтобы вы могли запросить у клиента этот способ:
this.$feathers.service("data").find({
query: {
timeSinceCreated: 24*60*60*1000
}
});