Add activityTarget relation after custom object creation (#2670)
* Add activityTarget relation after custom object creation * add isCustom check for relations
This commit is contained in:
@ -95,7 +95,7 @@ export class CompositeFieldAliasFactory {
|
||||
}
|
||||
`;
|
||||
}
|
||||
let relationAlias = fieldKey;
|
||||
let relationAlias = fieldMetadata.isCustom ? `_${fieldKey}` : fieldKey;
|
||||
|
||||
// For one to one relations, pg_graphql use the targetTableName on the side that is not storing the foreign key
|
||||
// so we need to alias it to the field key
|
||||
|
||||
@ -18,4 +18,5 @@ export interface FieldMetadataInterface<
|
||||
isNullable?: boolean;
|
||||
fromRelationMetadata?: RelationMetadataEntity;
|
||||
toRelationMetadata?: RelationMetadataEntity;
|
||||
isCustom?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user