• Generates the base GraphQL type name for an entity using SchemaBaseTable pattern. Preserves original capitalization. Special case: MJ core schema uses "MJ" prefix. This ensures unique type names across different schemas.

    Parameters

    • entity: EntityInfo

      The entity to generate the type name for

    Returns string

    The base GraphQL type name (without suffix like ViewByID, DynamicView, etc.)

    Example

    // Entity in core schema
    const entity = { SchemaName: '__mj', BaseTable: 'User' };
    getGraphQLTypeNameBase(entity)
    // Output: "MJUser"

    Example

    // Entity in custom schema
    const entity = { SchemaName: 'sales', BaseTable: 'Invoice' };
    getGraphQLTypeNameBase(entity)
    // Output: "salesInvoice"