* Returns the scope id of a mutation, used to run mutations with the same scope one after another. * @param mutation - The mutation to read the scope of. * @returns The mutation's `scope.id`, or `undefined` if it has no scope.
(mutation: Mutation<any, any, any, any>)
| 386 | * @returns The mutation's `scope.id`, or `undefined` if it has no scope. |
| 387 | */ |
| 388 | function scopeFor(mutation: Mutation<any, any, any, any>) { |
| 389 | return mutation.options.scope?.id |
| 390 | } |