mongoose default value boolean code example Example: mongoose type boolean default false isUsed: { type: Boolean, default: false }