diff --git a/packages/core/data-source-manager/src/collection.ts b/packages/core/data-source-manager/src/collection.ts index 51e633fd17..dd6859fc75 100644 --- a/packages/core/data-source-manager/src/collection.ts +++ b/packages/core/data-source-manager/src/collection.ts @@ -15,7 +15,10 @@ export class Collection implements ICollection { repository: IRepository; fields: Map = new Map(); - constructor(protected options: CollectionOptions, protected collectionManager: ICollectionManager) { + constructor( + protected options: CollectionOptions, + protected collectionManager: ICollectionManager, + ) { this.setRepository(options.repository); if (options.fields) { @@ -23,6 +26,10 @@ export class Collection implements ICollection { } } + get name() { + return this.options.name; + } + updateOptions(options: CollectionOptions, mergeOptions?: any) { const newOptions = { ...this.options,