WeivData API Reference | ExWeiv Apps
    Preparing search index...

    Type Alias HookContext

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

    Properties

    collectionName: string

    Collection name.

    dbName: string

    Database name.

    userId?: 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)