If my Schema is like this:
var fooSchema = new Schema({
foo: String
});
and I'm looking to implement select: false
for foo
, how can I achieve this without altering the initial structure?
var fooSchema = new Schema({
foo: { type: String, select: false }
});
Is there a way to directly apply select: false
to foo
within fooSchema
?