Add local-first execution contracts to the capability language
This commit is contained in:
@@ -46,6 +46,15 @@ export const queryRuntimePlan = (linked: LinkedQuery, workspace: WorkspaceRevisi
|
||||
InstalledQuerySchema,
|
||||
create(InstalledQuerySchema, {
|
||||
id: linked.id,
|
||||
placement: linked.checked.declaration.placement && {
|
||||
kind:
|
||||
linked.checked.declaration.placement.kind === "replica"
|
||||
? { case: "replica", value: true }
|
||||
: {
|
||||
case: "localSourceQueryId",
|
||||
value: `${linked.packageRevisionId}:${linked.checked.declaration.placement.sourceQueryId}`,
|
||||
},
|
||||
},
|
||||
definitionDigest: linked.checked.definitionDigest,
|
||||
bindingDigest: linked.bindingDigest,
|
||||
root: {
|
||||
|
||||
Reference in New Issue
Block a user