Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 321 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 321 Bytes

mongoose-locale

You can use this plugin when you need to use field for multiple languages.

Example

Next schema will be converted

{
	name: { type: String, trim: true, locale: true }
}

into this schema

{
	name: [{
		lg    : { type: String },
		value : { type: String, trim: true }
	}]
}