+5
.changeset/dry-days-wait.md
+5
.changeset/dry-days-wait.md
···+Allow `makeOperation` to be called with a partial `OperationContext` when it’s called to copy an operation. When it receives an `Operation` as a second argument now, the third argument, the context, will be spread into the prior `operation.context`.
-1
packages/core/src/exchanges/cache.ts
-1
packages/core/src/exchanges/cache.ts
+13
-7
packages/core/src/utils/operation.ts
+13
-7
packages/core/src/utils/operation.ts
···* @param kind - The {@link OperationType} of GraphQL operation, i.e. `query`, `mutation`, or `subscription`.+* @param request - The {@link GraphQLRequest} or {@link Operation} used as a template for the new `Operation`.* This method is both used to create new {@link Operation | Operations} as well as copy and modify existing* operations. While it’s not required to use this function to copy an `Operation`, it is recommended, in case+* Hint: When an {@link Operation} is passed to the `request` argument, the `context` argument does not have to be+* a complete {@link OperationContext} and will instead be combined with passed {@link Operation.context}.·········