diff --git a/packages/core/database/src/collection.ts b/packages/core/database/src/collection.ts index b335267452..54276a880a 100644 --- a/packages/core/database/src/collection.ts +++ b/packages/core/database/src/collection.ts @@ -270,6 +270,9 @@ export class Collection< return this.fields.get(name); } + getFields() { + return [...this.fields.values()]; + } addField(name: string, options: FieldOptions): Field { return this.setField(name, options); }