code: function newRecordInstance (raw) {
      // return raw data
      if (this.query.args.raw) {
          return raw
      }
      // return new model instance
      else {
          return this.query.model.newInstance({
              model: this.query.model,
              plain: this.query.args.plain,
              raw: raw,
              session: this.query.session,
          })
      }
  }
docs: @function applyModelViewRecord
  
  @param {object} raw
  
  @returns {Promise}