first step (#15687)

TODO : 

-> for test integreation for this connect 
-> add validation in common API

Fixes https://github.com/twentyhq/core-team-issues/issues/1278
This commit is contained in:
Guillim
2025-11-07 14:49:57 +01:00
committed by GitHub
parent f50d9bfa43
commit 2274a937bd
8 changed files with 203 additions and 6 deletions
@@ -180,11 +180,7 @@ export class RelationFieldMetadataGqlInputTypeGenerator {
>;
typeOptions: TypeOptions;
}) {
if (
fieldMetadata.settings?.relationType === RelationType.ONE_TO_MANY ||
//TODO : Enable connect on morph relation - @guillim
fieldMetadata.type === FieldMetadataType.MORPH_RELATION
) {
if (fieldMetadata.settings?.relationType === RelationType.ONE_TO_MANY) {
return {};
}