Class: MutationContext<T>
The mutation context that will be provided to the security function.
Type parameters
Name | Type |
---|---|
T | any |
Properties
beforeAndAfterDocs
• Readonly
beforeAndAfterDocs: BeforeAndAfterDocs
<T
>
mutation
• Readonly
mutation: Mutation
<T
>
serverTimeStamp
• Readonly
serverTimeStamp: Date
Accessors
after
• get
after(): undefined
| T
Returns
undefined
| T
before
• get
before(): undefined
| T
Returns
undefined
| T
Methods
affectsPath
▸ affectsPath(path
): boolean
Returns true if the mutation affects the provided path.
Parameters
Name | Type |
---|---|
path | Paths <T > |
Returns
boolean
getMutationType
▸ getMutationType(): MutationType