I would like to fill out a couple of additional temporary properties with additional data and send back the response
'use strict'; var mongoose = require('mongoose'); var express = require('express'); var app = express(); var TournamentSchema = new mongoose.Schema({ createdAt: { type: Date, default: Date.now }, deadlineAt: { type: Date } }); var Tournament = mongoose.model('Tournament', TournamentSchema); app.get('/', function(req, res) { var tournament = new Tournament();
But properties will not be added to the tournament object, and therefore not in response.
bobmoff
source share