opusdev/vector-similarity-api
1
1import { BSONValue } from './bson_value';2 3/** @public */4export interface MaxKeyExtended {5 $maxKey: 1;6}7 8/**9 * A class representation of the BSON MaxKey type.10 * @public11 * @category BSONType12 */13export class MaxKey extends BSONValue {14 get _bsontype(): 'MaxKey' {15 return 'MaxKey';16 }17 18 /** @internal */19 toExtendedJSON(): MaxKeyExtended {20 return { $maxKey: 1 };21 }22 23 /** @internal */24 static fromExtendedJSON(): MaxKey {25 return new MaxKey();26 }27 28 inspect(): string {29 return 'new MaxKey()';30 }31}32 