Changelog
[0.3.2] - 2023-10-24
Changelog
[0.3.1] - 2023-10-19
$group
and $having
as they detriment type safety as currently implemented (support may be redesigned later if required).$project
operator.$filter
operator.$count
, $min
, $max
, $min
, and $sum
) as they detriment type safety as currently implemented. This can be done via Virtual fields instead as currently supported for better type safety.Changelog
[0.3.0] - 2023-10-18
Add support for transaction
operations using a QuerierPool.
Automatically wraps the code of the callback inside a transaction, and auto-releases the querier after running.
Update dependencies.
const ids = await querierPool.transaction(async (querier) => {
const data = await querier.findMany(...);
const ids = await querier.insertMany(...);
return ids;
});