* Create a new context with updated options. * The original context remains unchanged.
(newOptions: QueryContextOptions)
| 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 | } |