Skip to main content

of

Function of 

Source
pub fn of<R>() -> Relation<R>
where R: EntityTrait,
Expand description

Reference the related entity R for eager loading. Generic over R so the caller can name it explicitly:

use arcature_data::Relation;
query.with(Relation::of::<user::Entity>())

R is resolved through SeaORM’s Related<R> impl on the parent entity.