HookContext: {
    collectionName: string;
    dbName: string;
    userId?: string;
    userRoles: any[] | undefined;
}

Type declaration

  • collectionName: string

    Collection name.

  • dbName: string

    Database name.

  • OptionaluserId?: string

    If there is one you'll have user id here (fetched from Wix Members data via wix-users-backend APIs)

  • userRoles: any[] | undefined

    Currecn user roles. (fetched from Wix Members data via wix-users-backend APIs)