pub fn walk_relations(datamodel: &Datamodel) -> impl Iterator<Item = RelationWalker<'_>> {
    walk_models(datamodel)
        .flat_map(move |model| model.into_relation_fields())
        .unique_by(|walker| walker.relation_name())
        .map(|relation_field| {
            let field_b = relation_field.opposite_side();

            RelationWalker {
                field_a: relation_field,
                field_b,
            }
        })
}
/// Iterator over all the relations in the schema. Each relation will only occur
/// once.
Iterator over all the relations in the schema. Each relation will only occur
once.
Iterator over all the relations in the schema . Each relation will only occur once .
pub fn walk_relations(datamodel: &Datamodel) -> impl Iterator<Item = RelationWalker<'_>> {
    walk_models(datamodel)
        .flat_map(move |model| model.into_relation_fields())
        .unique_by(|walker| walker.relation_name())
        .map(|relation_field| {
            let field_b = relation_field.opposite_side();
            RelationWalker {
                field_a: relation_field,
                field_b,
            }
        })
}
pub fn walk_relations ( datamodel : & Datamodel ) -> impl Iterator < Item = RelationWalker < ' _ > > { walk_models ( datamodel ) . flat_map ( move | model | model . into_relation_fields ( ) ) . unique_by ( | walker | walker . relation_name ( ) ) . map ( | relation_field | { let field_b = relation_field . opposite_side ( ) ; RelationWalker { field_a : relation_field , field_b , } } ) }
Iterator over all the relations in the schema.
Iterator over all the relations in the schema .
datamodel
&Datamodel
datamodel
&Datamodel