StreamOptions <Entity, Populate, Fields, Exclude>
Hierarchy
- Omit<FindAllOptions<Entity, Populate, Fields, Exclude>, cache | before | after | first | last | overfetch | strategy>
- StreamOptions
Index
Properties
- allowDiskUse
- collation
- comments
- connectionType
- convertCustomTypes
- ctx
- disableIdentityMap
- exclude
- fields
- filters
- flags
- flushMode
- groupBy
- having
- hintComments
- indexHint
- limit
- lockMode
- lockTableAliases
- loggerContext
- logging
- maxTimeMS
- mergeResults
- offset
- orderBy
- populate
- populateFilter
- populateHints
- populateOrderBy
- populateWhere
- refresh
- schema
- where
Properties
optionalinheritedallowDiskUse
optionalinheritedcollation
SQL: collation name string applied as COLLATE to ORDER BY; MongoDB: CollationOptions object.
optionalinheritedcomments
sql only
optionalinheritedconnectionType
optionalinheritedconvertCustomTypes
optionalinheritedctx
optionalinheriteddisableIdentityMap
optionalinheritedexclude
optionalinheritedfields
optionalinheritedfilters
optionalinheritedflags
optionalinheritedflushMode
optionalinheritedgroupBy
sql only
optionalinheritedhaving
optionalinheritedhintComments
sql only
optionalinheritedindexHint
SQL: appended to FROM clause (e.g. 'force index(my_index)'); MongoDB: index name or spec passed as hint.
optionalinheritedlimit
Limit the number of returned results. If you try to use limit/offset on a query that joins a to-many relation, pagination mechanism will be triggered, resulting in a subquery condition, to apply this limit only to the root entities instead of the cartesian product you get from a database in this case.
optionalinheritedlockMode
sql only
optionalinheritedlockTableAliases
sql only
optionalinheritedloggerContext
optionalinheritedlogging
optionalinheritedmaxTimeMS
mongodb only
optionalmergeResults
When populating to-many relations, the ORM streams fully merged entities instead of yielding every row.
You can opt out of this behavior by specifying mergeResults: false. This will yield every row from
the SQL result, but still mapped to entities, meaning that to-many collections will contain at most
a single item, and you will get duplicate root entities when they have multiple items in the populated
collection.
optionalinheritedoffset
Sets the offset. If you try to use limit/offset on a query that joins a to-many relation, pagination mechanism will be triggered, resulting in a subquery condition, to apply this limit only to the root entities instead of the cartesian product you get from a database in this case.
optionalinheritedorderBy
Ordering of the results.Can be an object or array of objects, keys are property names, values are ordering (asc/desc)
optionalinheritedpopulate
optionalinheritedpopulateFilter
Filter condition for populated relations. This is similar to populateWhere, but will produce a left join
when nesting the condition. This is used for implementation of joined filters.
optionalinheritedpopulateHints
Per-relation overrides for populate loading behavior. Keys are populate paths (same as used in populate).
optionalinheritedpopulateOrderBy
Used for ordering of the populate queries. If not specified, the value of options.orderBy is used.
optionalinheritedpopulateWhere
Where condition for populated relations. This will have no effect on the root entity.
With select-in strategy, this is applied only to the populate queries.
With joined strategy, those are applied as join on conditions.
When you use a nested condition on a to-many relation, it will produce a nested inner join,
discarding the collection items based on the child condition.
mongodb only