serializeToDatabase(data) {
    // avoid the data var mutation
    const result = merge({}, data);

    delete result._id;

    return result;
  }
Serializes the object before being persisted to database.

@param {object} data - The object to serialize
@returns {object}