how to have array of strings mongoose code example
Example 1: js array of strings mongoose
var personSchema = new mongoose.Schema({
tags: [{
type: String
}]
Example 2: Typegoose array of strings
@arrayProp({ items: String }) public languages?: string[];