Skip to content

Instantly share code, notes, and snippets.

View rajuAhmed1705's full-sized avatar
🎯
Focusing

Raju Ahmed rajuAhmed1705

🎯
Focusing
View GitHub Profile
@brennanMKE
brennanMKE / hero.ts
Last active March 19, 2026 17:42
Example of Mongoose with TypeScript and MongoDb
import * as mongoose from 'mongoose';
export let Schema = mongoose.Schema;
export let ObjectId = mongoose.Schema.Types.ObjectId;
export let Mixed = mongoose.Schema.Types.Mixed;
export interface IHeroModel extends mongoose.Document {
name: string;
power: string;