docs/docs/en/api/data-source-manager/i-collection.md
ICollection is the interface for the data model, which contains information such as the model's name, fields, and associations.
export interface ICollection {
repository: IRepository;
updateOptions(options: any): void;
setField(name: string, options: any): IField;
removeField(name: string): void;
getFields(): Array<IField>;
getField(name: string): IField;
[key: string]: any;
}
The Repository instance to which ICollection belongs.
Updates the properties of the Collection.
updateOptions(options: any): voidSets a field for the Collection.
setField(name: string, options: any): IFieldRemoves a field from the Collection.
removeField(name: string): voidGets all fields of the Collection.
getFields(): Array<IField>Gets a field of the Collection by its name.
getField(name: string): IField