diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts index 79ffb56c2da3..e3b183bb70f6 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts @@ -471,7 +471,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont sqlQuerySpec["query"] = rewrittenQuery; } - const options = JSON.parse(JSON.stringify(this.options)); + const options = { ...this.options }; options.continuationToken = continuationToken; return new DocumentProducer(