title: How can i do the join of two table in loopback4
body: <p>I have created below mention controller,model and repository in my code. Please have look.</p>
  <p>I have developed below mention code but still not able to perform the join operation.</p>
  <h3>I am going to join two table that is person and info table.</h3>
  <pre><code> - Info table having one foreign key which is belong to person table.
   
   - Person table: id, name, status
   
   - Info table : id, person_id , name , status
  </code></pre>
  <p>I have also create repository,model and controller file for info and person.</p>
  <p>Person Repository ( person.repository.ts)</p>
  <pre><code>) {
    super(Person, dataSource);
    this.infos = this._createHasOneRepositoryFactoryFor(
      'info',
      getInfoRepository,
   );
  }
  </code></pre>
  <p>Person Module ( person.module.ts)</p>
  <pre><code> @hasOne(() =&gt; Info)
      infos?: Info;
   
   constructor(data?: Partial&lt;Person&gt;) {
    super(data);
   }
  </code></pre>
  <p>Info Module (info.module.ts)</p>
  <pre><code> @belongsTo(() =&gt; Person)
   personId: number;
  
   constructor(data?: Partial&lt;Info&gt;) {
      super(data);
   }
  </code></pre>
  <p>It show me error like this
  <strong>Unhandled error in GET /people/fetchfromtwotable?filter[offset]=0&amp;filter[limit]=10&amp;filter[skip]=0: 500 TypeError: Cannot read property 'target' of undefined</strong></p>
  <p>Is there any idea about join?</p>