Say that my Schema is:
var fooSchema = new Schema({
foo: String
});
and I want to add select: false
to foo
. How would I do that? Without doing the following:
var fooSchema = new Schema({
foo: { type: String, select: false }
});
Can I do fooSchema.<somethingToAddSelectFalseToFoo>
?