import { Class, Doc, DocumentQuery, FindOptions, FindResult, MeasureContext, Ref, ServerStorage } from '@hcengineering/core' /** * @public */ export function createFindAll (storage: ServerStorage): ServerStorage['findAll'] { return async ( ctx: MeasureContext, clazz: Ref>, query: DocumentQuery, options?: FindOptions ): Promise> => { return await storage.findAll(ctx, clazz, query, options) } }