serialization: only hide references argument when it is empty
@@ -66,10 +66,7 @@ impl DirectiveValidator<dml::Field> for RelationDirectiveValidator {
relation_fields.sort();
all_related_ids.sort();
- if !relation_info.to_fields.is_empty()
- && relation_fields != all_related_ids
- && parent_model.name < related_model.name
- {
+ if !relation_info.to_fields.is_empty() {
let mut related_fields: Vec<ast::Expression> = Vec::new();
for related_field in &relation_info.to_fields {
related_fields.push(ast::Expression::ConstantValue(
