Make local graph execution optional across composed packages
This commit is contained in:
@@ -32,10 +32,7 @@ export function publicOperationContract(
|
||||
const execution = operation.execution ?? { kind: "remote" };
|
||||
const member = iface.members.find((m) => m.operations.includes(operation))!;
|
||||
const fieldPolicy =
|
||||
member.kind === "value" &&
|
||||
operation.scope !== "class" &&
|
||||
execution.kind === "transaction" &&
|
||||
execution.targets.includes("browser")
|
||||
member.kind === "value" && operation.scope !== "class" && execution.kind === "transaction"
|
||||
? operation.displayName === "edit"
|
||||
? "crdt"
|
||||
: member.nativeField && operation.displayName === "set"
|
||||
|
||||
Reference in New Issue
Block a user