Enable filtering on a relation

Hi,
Consider two collections with one-to-many relations.
How can I make “one” relation side filterable?
The relation is detected automatically right now by the Forestadmin’s agent on top of NestJs.

Here are the related sections of the collections:

@Entity()
export class Referral extends BaseEntity {
...

@OneToMany(() => ReferralStage, (ReferralStage) => ReferralStage.referral, {
    eager: true,
  })
  stages: ReferralStage[];

...
}
@Entity()
export class ReferralStage extends BaseEntity {

...

@ManyToOne(() => Referral, (referral) => referral.stages)
  referral: Referral;

...
}

Hello @bond

I’m sorry I don’t understand your issue.
I suppose you are using the datasource-sql connector

Can you give me more context? What are you trying to achieve?