Interface ReadonlyEntityCollection<Id, V>

Readonly entity view collection.

interface ReadonlyEntityCollection {
    [rangeQueryable]: true;
    entries<L>(options?): MaybeAsyncIterableIterator<[Id, EntityView<V, L>]>;
    entriesByAttr<L>(options?): MaybeAsyncIterableIterator<[Id, EntityView<V, L>]>;
    get<L>(id, options?): MaybePromise<undefined | EntityView<V, L>>;
    getMany<L>(ids, options?): MaybeAsyncIterableIterator<undefined | EntityView<V, L>>;
    has(id, options?): MaybePromise<boolean>;
    hasMany(ids, options?): MaybeAsyncIterableIterator<boolean>;
    keys<L>(options?): MaybeAsyncIterableIterator<Id>;
    keysByAttr<L>(options?): MaybeAsyncIterableIterator<Id>;
    values<L>(options?): MaybeAsyncIterableIterator<EntityView<V, L>>;
    valuesByAttr<L>(options?): MaybeAsyncIterableIterator<EntityView<V, L>>;
}

Type Parameters

  • Id

  • V

Hierarchy

Implemented by

Properties

[rangeQueryable]: true

Marker to indicate that this object is a RangeQueryable.

Methods

Generated using TypeDoc