Package ordinary PresentationMount contracts and typed React hosting
This commit is contained in:
@@ -18,7 +18,7 @@ const meta = () => selection("_camino", { selection: [selection("ref")] });
|
||||
export const inspectionPackage = "org.quixos.inspection/1";
|
||||
export interface InspectionTemplate {
|
||||
interface: string;
|
||||
members: { id: string; name: string; key: string; flag: string; lane: "local" | "server"; many: boolean }[];
|
||||
members: { id: string; name: string; key: string; flag: string; lane: "local" | "server"; many: boolean; relationship: boolean }[];
|
||||
inputs?: PublicQueryContract;
|
||||
view?: PublicQueryContract;
|
||||
server?: PublicQueryContract;
|
||||
@@ -81,7 +81,7 @@ export function compileInspectionTemplates(plan: ExecutionPlan) {
|
||||
// Only native edges promise the relationship traversal used by the interpreter.
|
||||
if (member.kind === "relationship" && providers.some((op) => op!.binding.kind !== "edge")) continue;
|
||||
if (!complete && (lane === "local" || !portable))
|
||||
template.members.push({ id: member.id, name: member.displayName, key, flag, lane, many });
|
||||
template.members.push({ id: member.id, name: member.displayName, key, flag, lane, many, relationship: member.kind === "relationship" });
|
||||
inputFields[flag] = scalar("bool");
|
||||
const field = selection(member.displayName, {
|
||||
key,
|
||||
|
||||
Reference in New Issue
Block a user