{"library":"mongoose-extend-schema","type":"library","category":null,"description":"A lightweight utility (v1.0.0, no recent updates) that extends a Mongoose schema by merging its fields with additional definitions. Unlike mongoose-extend-schema, native Mongoose does not provide a built-in schema inheritance method; this package offers a simple shallow merge approach. It is installed from npm, requires Node >=8.2.1 and Mongoose as a peer dependency. While straightforward, it has known issues: it only shallow-copies schema fields, does not copy indexes or other schema options, and can cause silent overrides if field names conflict. Use with caution for simple schema extension needs.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mongoose-extend-schema","imports":["import extendSchema from 'mongoose-extend-schema';","const extendSchema = require('mongoose-extend-schema');","const extendedSchema = extendSchema(baseSchema, definitions, { _id: false });"]},{"cmd":"yarn add mongoose-extend-schema","imports":[]},{"cmd":"pnpm add mongoose-extend-schema","imports":[]}],"homepage":"https://github.com/doasync/mongoose-extend-schema#readme","github":"git://github.com/doasync/mongoose-extend-schema","docs":null,"changelog":null,"pypi":null,"npm":"mongoose-extend-schema","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}