typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
12 lines (11 loc) • 411 B
TypeScript
import { FindOneOptions } from "../FindOneOptions";
import { ObjectLiteral } from "../../common/ObjectLiteral";
/**
* Defines a special criteria to find specific entity.
*/
export type MongoFindOneOptions<Entity = any> = Omit<FindOneOptions<Entity>, "where"> & {
/**
* Simple condition that should be applied to match entities.
*/
where?: FindOneOptions<Entity>["where"] | ObjectLiteral;
};