Intra-data source Relationships
In practice
Example
class MovieCollection extends BaseCollection {
constructor() {
super('movies', null);
// [...]
this.addField('director', {
type: 'ManyToOne',
foreignCollection: 'people',
foreignKey: 'directorId',
foreignKeyTarget: 'id',
});
}
}Last updated