* Create a new context with additional/updated parameters. * The original context remains unchanged.
(additionalParams: QueryParams)
| 103 | * The original context remains unchanged. |
| 104 | */ |
| 105 | public withParams(additionalParams: QueryParams): QueryContext<TSchema> { |
| 106 | return new QueryContext(this.#graph, { ...this.#params, ...additionalParams }, this.#options); |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Create a new context with updated options. |