//Won't throw an error if there's an attempt to change the field. const Schema = new mongoose.Schema({ field: { type: String, immutable: true } })