Skip to content

Instantly share code, notes, and snippets.

View fricci's full-sized avatar

Ferenc Czina fricci

  • Loxon Solutions Zrt.
  • Hungary
View GitHub Profile
@brennanMKE
brennanMKE / hero.ts
Last active April 6, 2025 07:33
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;