Seed morph metadata (#14149)

in thie PR we create the tooling to allow the relation and morph
relation creation during the seed process.

We use the ObjectMetadataMaps in order to fasten the process

Fixes https://github.com/twentyhq/core-team-issues/issues/1179
This commit is contained in:
Guillim
2025-08-29 15:04:08 +02:00
committed by GitHub
parent e6c87a360d
commit f6843fcdef
5 changed files with 150 additions and 0 deletions
@@ -83,6 +83,10 @@ export const fromCachedFieldMetadataEntityToFlatFieldMetadata = <
!isCachedFieldMetadataEntityOfType(
relationTargetCachedFieldMetadata,
FieldMetadataType.RELATION,
) &&
!isCachedFieldMetadataEntityOfType(
relationTargetCachedFieldMetadata,
FieldMetadataType.MORPH_RELATION,
)
) {
throw new WorkspaceMetadataCacheException(