@theguild/federation-composition
Version:
Open Source Composition library for Apollo Federation
31 lines • 880 B
TypeScript
import { type Edge } from "./edge.js";
import type { Node } from "./node.js";
export type Step = FieldStep | AbstractStep;
export declare const emptyOverrideLabel = " ";
export type FieldStep = {
fieldName: string;
typeName: string;
};
export type AbstractStep = {
typeName: string;
};
export declare class OperationPath {
private _rootNode;
private _toString;
private previousEdges;
private contextsInScope;
get contexts(): bigint;
constructor(_rootNode: Node);
move(edge: Edge): OperationPath;
clone(): OperationPath;
withoutContexts(): OperationPath;
hasContexts(required: bigint): boolean;
depth(): number;
edge(): Edge | undefined;
steps(): Step[];
tail(): Node | undefined;
rootNode(): Node;
isVisitedEdge(edge: Edge): boolean;
toString(): string;
}
//# sourceMappingURL=operation-path.d.ts.map