Lower checked shared edges into the portable graph model
This commit is contained in:
@@ -18,7 +18,15 @@ 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; relationship: 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 +89,15 @@ 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, relationship: member.kind === "relationship" });
|
||||
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