Standardize Camino query references and retire live field sidecars
This commit is contained in:
@@ -76,13 +76,10 @@ export function generatePortableClientBindings(
|
||||
const operations = query.operations.map(
|
||||
(key) => plan.definition.operations.find((operation) => operation.key === key)!,
|
||||
);
|
||||
const live = (selections: readonly QuerySelection[]): boolean =>
|
||||
selections.some((selection) => !!selection.liveSelectionId || live(selection.selection));
|
||||
if (
|
||||
operations.some(
|
||||
(operation) => operation.execution.kind !== "snapshot" || !operation.execution.targets.includes("server"),
|
||||
) ||
|
||||
live(query.query.checked.selection)
|
||||
)
|
||||
) {
|
||||
unavailable.push({ key: query.id, reason: "QUERY_NOT_SNAPSHOT_PROJECTION" });
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user