From f17561ce606bb45d3c512a5c3b830fa8826dccaa Mon Sep 17 00:00:00 2001 From: Fernando Hurtado Date: Wed, 2 Oct 2024 10:15:52 +0200 Subject: [PATCH] wip --- packages/backend/src/execution/composeExecutionResults.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/execution/composeExecutionResults.ts b/packages/backend/src/execution/composeExecutionResults.ts index 85c9c472..7e8bcbd4 100644 --- a/packages/backend/src/execution/composeExecutionResults.ts +++ b/packages/backend/src/execution/composeExecutionResults.ts @@ -66,7 +66,7 @@ function applyDeferredQueryResult( } function applyCardinalityAndDeferredResult(rows: T[], inputQuery: AnyQuery) { - const withCardinality = applyCardinality(rows, inputQuery.cardinality, { + const withCardinality = applyCardinality(rows, inputQuery.cardinality ?? 'many', { query: inputQuery, row: rows, });