Add bounded live query cursor continuation
This commit is contained in:
@@ -112,6 +112,14 @@ test("typed reference operands and scalar membership tests reject unbounded lite
|
||||
test("new runtime operator matrix accepts direct count and rejects unsupported relational plans", async () => {
|
||||
const { unsupportedQueryOperator } = await import("../src/execution-world/query-operators.js");
|
||||
assert.equal(unsupportedQueryOperator(await compile("aggregate { count }")), undefined);
|
||||
assert.equal(
|
||||
unsupportedQueryOperator(
|
||||
await compileAggregationDocument(
|
||||
`query Report($after: Cursor) {root {tasks(first: 30, after: $after, orderBy: [{cost: ASC}]) {entries {cursor node {cost}} pageInfo {hasNextPage endCursor}}}}`,
|
||||
),
|
||||
),
|
||||
undefined,
|
||||
);
|
||||
for (const expression of [
|
||||
"aggregate { sum { estimatedHours } }",
|
||||
"filter(where: {estimatedHours: {gt: 0}}) { aggregate { count } }",
|
||||
|
||||
Reference in New Issue
Block a user