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

@ -13,6 +13,7 @@ export const moneyObjectDefinition = {
{
id: 'amount',
type: FieldMetadataType.NUMBER,
objectId: FieldMetadataType.MONEY.toString(),
name: 'amount',
label: 'Amount',
targetColumnMap: { value: 'amount' },
@ -21,9 +22,12 @@ export const moneyObjectDefinition = {
{
id: 'currency',
type: FieldMetadataType.TEXT,
objectId: FieldMetadataType.MONEY.toString(),
name: 'currency',
label: 'Currency',
targetColumnMap: { value: 'currency' },
},
],
fromRelations: [],
toRelations: [],
} as ObjectMetadataInterface;

View File

@ -13,6 +13,7 @@ export const urlObjectDefinition = {
{
id: 'text',
type: FieldMetadataType.TEXT,
objectId: FieldMetadataType.URL.toString(),
name: 'text',
label: 'Text',
targetColumnMap: { value: 'text' },
@ -20,9 +21,12 @@ export const urlObjectDefinition = {
{
id: 'link',
type: FieldMetadataType.TEXT,
objectId: FieldMetadataType.URL.toString(),
name: 'link',
label: 'Link',
targetColumnMap: { value: 'link' },
},
],
fromRelations: [],
toRelations: [],
} as ObjectMetadataInterface;