* 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>)
| 373 | * @returns The mutation's `scope.id`, or `undefined` if it has no scope. |
| 374 | */ |
| 375 | function scopeFor(mutation: Mutation<any, any, any, any>) { |
| 376 | return mutation.options.scope?.id |
| 377 | } |