Function: getCollectionByPathOrAlias
▸ getCollectionByPathOrAlias<M
>(pathOrAlias
, collections
): EntityCollection
| undefined
Find the corresponding view at any depth for a given path. Note that path or segments of the paths can be collection aliases.
Type parameters
Name | Type |
---|---|
M | extends Record <string , any > |
Parameters
Name | Type |
---|---|
pathOrAlias | string |
collections | EntityCollection <any , string , User >[] |
Returns
EntityCollection
| undefined