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

Method withOptions

packages/graph/src/QueryContext.ts:113–118  ·  view source on GitHub ↗

* Create a new context with updated options. * The original context remains unchanged.

(newOptions: QueryContextOptions)

Source from the content-addressed store, hash-verified

111 * The original context remains unchanged.
112 */
113 public withOptions(newOptions: QueryContextOptions): QueryContext<TSchema> {
114 return new QueryContext(this.#graph, this.#params, {
115 ...this.#options,
116 ...newOptions,
117 });
118 }
119}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected