This class is responsible for generating the GraphQL Server resolvers and types for the entities, you can sub-class this class to extend/modify the logic, make sure to use @memberjunction/global RegisterClass decorator so that your class is used.

Constructors

Properties

_graphQLTypeSuffix: string = '_'

Accessors

Methods

  • Parameters

    • entities: EntityInfo[]
    • outputDirectory: string
    • generatedEntitiesImportLibrary: string
    • excludeRelatedEntitiesExternalToSchema: boolean

    Returns boolean

  • Parameters

    • entity: EntityInfo
    • includeFileHeader: boolean
    • generatedEntitiesImportLibrary: string
    • excludeRelatedEntitiesExternalToSchema: boolean

    Returns string

  • 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)