Evaluate coherent local queries over explicit replica scopes
This commit is contained in:
@@ -173,6 +173,15 @@ test("local queries cannot silently expand the replica relationship traversal",
|
||||
assert.throws(() => compileExecutionPlan(workspace), /REPLICA_TRAVERSAL_MISSING/);
|
||||
});
|
||||
|
||||
test("local relationships require complete source candidates even when a filter initially matches", async () => {
|
||||
for (const selection of ["highlights(first: 10)", 'highlights(all: 1000, where: {color: {eq: "yellow"}})']) {
|
||||
const workspace = await loadReaderWorkspace((name, text) =>
|
||||
name === "queries/replica-inputs.graphql" ? text.replace("highlights(all: 1000)", selection) : text,
|
||||
);
|
||||
assert.throws(() => compileExecutionPlan(workspace), /REPLICA_RELATION_INCOMPLETE/);
|
||||
}
|
||||
});
|
||||
|
||||
test("closed generic applications retain distinct identities and codec shapes", async () => {
|
||||
const { compileCapabilityResourceSource, compileCapabilitySource } =
|
||||
await import("../src/capability-language/index.js");
|
||||
|
||||
Reference in New Issue
Block a user