{"library":"type-mongodb","type":"library","category":null,"description":"A TypeScript-first, decorator-based MongoDB ODM (Object-Document Mapper) built on the MongoDB Node.js driver v4. Current version is 2.0.0-beta.12, released as a beta indicating potential breaking changes in future releases. Key differentiators: decorator-driven schema definition, data-mapper pattern with repository classes, automatic type inference from decorators (no separate schema files), support for embedded documents and references. Decent alternative to Mongoose for teams preferring TypeScript-native ODM with strict type safety. Encourages domain-driven design and works with active record and data-mapper patterns. Requires reflect-metadata polyfill. Release cadence: beta releases every few months.","language":"javascript","status":"active","version":"2.0.0-beta.12","tags":["javascript","orm","odm","mongo","mongodb","ts","typescript","entity"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install type-mongodb","imports":["import { Entity } from 'type-mongodb'","import { getRepository } from 'type-mongodb'","import { createConnection } from 'type-mongodb'"]},{"cmd":"yarn add type-mongodb","imports":[]},{"cmd":"pnpm add type-mongodb","imports":[]}],"homepage":"https://github.com/j/type-mongodb#readme","github":"https://github.com/j/type-mongodb","docs":null,"changelog":null,"pypi":null,"npm":"type-mongodb","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}