EntityIdAndClassIdIterable Type Alias
EntityIdAndClassIdIterable = Iterable<Readonly<EntityIdAndClassId>>
A collection of EntityIdAndClassIds containing only entity and ECClass Ids.
Backend transaction change events use a richer iterable that also exposes ECClass metadata.
For efficiency, the iterator supplied by this iterable returns the same EntityIdAndClassId object on each iteration. Therefore the objects must be copied if you
intend to store references to them. For example, to populate an array from the iterable:
function arrayFromIterable(entities: EntityIdAndClassIdIterable): EntityIdAndClassId[] {
// NO! return Array.from(entities);
const array = [];
for (const entity of entities)
array.push({...entity});
return array;
}
Defined in
Last Updated: 03 September, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.