$distinct
Query
Parameter's
var values = await Member.$distinct({
$field: ['userId', 'username', 'displayName'],
$where: {
createdAt: {
$gte: new Date('2021-01-01')
}
},
$options: {
$cache: true
}
});Last updated