Skip to main content

Module relations

Module relations 

Source
Expand description

Code generation for relation support: Include, WithRelations, batched loading.

Structs§

RelationInfo
Information about a relation from one model to another.

Functions§

collect_relations
Collect relation fields for a model, resolving against the full schema.
gen_find_many_include
Generate include() and exec_with_relations() methods for FindMany.
gen_relation_types
Generate the Include struct, WithRelations struct, and include-aware query methods.