chore(index): return ids only (#12543)
This commit is contained in:
committed by
GitHub
parent
fca5ad77b4
commit
ebe5cc7acd
@@ -237,7 +237,7 @@ export class PostgresProvider implements IndexTypes.StorageProvider {
|
||||
): Promise<IndexTypes.QueryResultSet<TEntry>> {
|
||||
await this.#isReady_
|
||||
|
||||
const { fields = [], filters = {}, joinFilters = {} } = config
|
||||
const { fields = [], filters = {}, joinFilters = {}, idsOnly } = config
|
||||
const { take, skip, order: inputOrderBy = {} } = config.pagination ?? {}
|
||||
|
||||
const select = normalizeFieldsSelection(fields)
|
||||
@@ -280,6 +280,7 @@ export class PostgresProvider implements IndexTypes.StorageProvider {
|
||||
},
|
||||
rawConfig: config,
|
||||
requestedFields,
|
||||
idsOnly,
|
||||
})
|
||||
|
||||
const { sql, sqlCount } = qb.buildQuery({
|
||||
|
||||
Reference in New Issue
Block a user