import { AnyKeys, AnyObject } from 'nxdb-old/src/types/util'; /** * @link https://github.com/Automattic/mongoose/blob/eb292d2c4cc98ee315f118d6199a83938f06d901/types/index.d.ts#L466 */ export type UpdateQuery = { $min?: AnyKeys & AnyObject; $max?: AnyKeys & AnyObject; $inc?: AnyKeys & AnyObject; $set?: AnyKeys & AnyObject; $unset?: AnyKeys & AnyObject; $push?: AnyKeys & AnyObject; $pushAll?: AnyKeys & AnyObject; $addToSet?: AnyKeys & AnyObject; $pop?: AnyKeys & AnyObject; $pullAll?: AnyKeys & AnyObject; $rename?: Record; /** * The following operators a commented out * because they are not implemented into modifyjs. * @link https://github.com/lgandecki/modifyjs#implemented */ // $bit?: Record; // $currentDate?: AnyKeys & AnyObject; // $mul?: AnyKeys & AnyObject; // $pull?: AnyKeys & AnyObject; // $setOnInsert?: AnyKeys & AnyObject; };