TypeScript definitions for MongoDB operators
Download it using you favourite package manager.
npm i -D @b4dnewz/mongodb-operators
Load the interfaces in your source files.
import {QueryConditions} from "@b4dnewz/mongodb-operators"
interface IUser {
username: string
email: string
available: boolean
}
const query: QueryConditions<IUser> = {
// benefit from suggestions
}
This project is released under MIT License from Filippo Conti