Skip to main content

Class: MutationContext<T>

The mutation context that will be provided to the security function.

Type parameters

NameType
Tany

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

NameType
pathPaths<T>

Returns

boolean


getMutationType

getMutationType(): MutationType

Returns

MutationType