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:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user