message: Updated 'ref' parameter to allow population by string
  Updated 'ref' parameter to allow population by string
diff: @@ -92,7 +92,14 @@ const baseProp = (rawOptions, Type, target, key, isArray = false) => {
  }
  const ref = rawOptions.ref;
  - if (ref) {
  + if (typeof ref === 'string') {
  + schema[name][key] = {
  + ...schema[name][key],
  + type: mongoose.Schema.Types.ObjectId,
  + ref,
  + };
  + return;
  + } else if (ref) {
  schema[name][key] = {
  ...schema[name][key],
  type: mongoose.Schema.Types.ObjectId,
  