MCPcopy Create free account
hub / github.com/codemix/graph / clone

Method clone

packages/graph/src/Steps.ts:7063–7074  ·  view source on GitHub ↗
(partial?: Partial<WithStepConfig>)

Source from the content-addressed store, hash-verified

7061 }
7062
7063 public override clone(partial?: Partial<WithStepConfig>) {
7064 return new WithStep({
7065 distinct: partial?.distinct ?? this.config.distinct,
7066 items: partial?.items ?? [...this.config.items],
7067 orderBy: partial?.orderBy ?? (this.config.orderBy ? [...this.config.orderBy] : undefined),
7068 skip: partial?.skip ?? this.config.skip,
7069 limit: partial?.limit ?? this.config.limit,
7070 whereCondition: partial?.whereCondition ?? this.config.whereCondition,
7071 stepLabels:
7072 partial?.stepLabels ?? (this.config.stepLabels ? [...this.config.stepLabels] : undefined),
7073 });
7074 }
7075
7076 public override toStringTokens(): StepStringToken[] {
7077 const tokens: StepStringToken[] = [{ kind: "start" }, { kind: "name", value: this.name }];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected