Requires the
entities bundle. A project without the entities bundle returns 403 database/tables-not-available. See Bundles.Overview
useFetchManyEntities returns a function that fetches a paginated list of entities with full filtering and sorting support. This is the low-level hook underlying EntityListProvider. For continuous-scroll or load-more list UIs, use useEntityList instead, which wraps this hook with built-in pagination state.
Usage Example
Parameters
Field to sort by. Options:
"createdAt", "top", "hot", "controversial", or "metadata.<property>" to sort by a metadata field.Sort algorithm type. Options:
"auto", "numeric", "text", "boolean", "timestamp". Used when sorting by a metadata field.Filter by keywords. See Entity List Filters for the full filter schema.
Filter by title content. See Entity List Filters.
Filter by body content. See Entity List Filters.
Filter by attachments data. See Entity List Filters.
Filter by geographic proximity. See Entity List Filters.
Filter by metadata fields. See Entity List Filters.
Filter by effective NSFW status (
entity.nsfw OR its space's nsfwEffective). "include-all" (default) adds no predicate; "exclude" drops effective-NSFW entities; "only" returns only effective-NSFW entities. On projects without the spaces bundle it applies against the entity’s own nsfw flag alone. See Entity NSFW flagging.Populate related fields. Accepted values:
"user", "space", "topComment", "saved", "files", "grants".Returns
Array of entities for the current page. When
spaceReputation is requested, each embedded author carries an added spaceReputation number. See Reputation.
