feat: schema-builder and resolver-builder can handle relations (#2398)

* feat: wip add relation

* feat: add relation for custom and standards objects

* fix: use enum instead of magic string

* fix: remove dead code & fix tests

* fix: typo

* fix: BooleanFilter is missing

* fix: Malformed result error
This commit is contained in:
Jérémy M
2023-11-10 12:32:02 +01:00
committed by GitHub
parent edd152910d
commit 6a700ad1a5
71 changed files with 1842 additions and 1005 deletions

View File

@ -1,6 +1,7 @@
import { FieldMetadataTargetColumnMap } from 'src/metadata/field-metadata/interfaces/field-metadata-target-column-map.interface';
import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';
import { RelationMetadata } from 'src/metadata/relation-metadata/relation-metadata.entity';
export interface FieldMetadataInterface<
T extends FieldMetadataType | 'default' = 'default',
@ -10,6 +11,9 @@ export interface FieldMetadataInterface<
name: string;
label: string;
targetColumnMap: FieldMetadataTargetColumnMap<T>;
objectId: string;
description?: string;
isNullable?: boolean;
fromRelationMetadata?: RelationMetadata;
toRelationMetadata?: RelationMetadata;
}