code: function buildWhereRelationDirect (name, value, relation) {
      // create alias for relation table to use in query
      var relationAlias = this.newAlias(relation.model.name)
      // get param name
      var paramName = this.newParam(relation.modelIdColumn)
      // get placeholder
      var placeholder = this.unhexId(`:${paramName}`)
      // build sql
      var whereSql = `${this.alias}.${this.quoteName(relation.modelIdColumn)} = ${placeholder}`
      // add value to params
      this.params[paramName] = value[relation.modelIdColumn]
      // add where clause to query
      this.where.push(whereSql)
  }
docs: @function buildWhereRelationDirect
  
  build where clause for related model that is reference directly
  
  @param {string} name
  @param {array|boolean|object|string} value
  @param {object} relation
  
  @throws {Error}