Skip to main content

supportsCollectionOperations

@webda/models


Function: supportsCollectionOperations()

supportsCollectionOperations<T>(repo): repo is CoreRepository<T> & CollectionOperations<T>

Defined in: packages/models/src/repositories/repository.ts:435

Type guard to check if repository supports collection operations

Type Parameters​

T​

T extends ModelClass<Storable<any, any>>

Parameters​

repo​

CoreRepository<T>

the repository to check

Returns​

repo is CoreRepository<T> & CollectionOperations<T>

true if collection operations are supported