group
Utility module for handling GraphQL schema entity grouping.
getGroup()β
function getGroup(
   type, 
   groups, 
   typeCategory): string;
Defined in: group.ts:24
Retrieves the group name for a given GraphQL type based on its category and group mapping.
Parametersβ
typeβ
unknown
The GraphQL type to get the group for
groupsβ
Maybe<Partial<Record<SchemaEntity, Record<string, Maybe<string>>>>>
Mapping of schema entities to their group names
typeCategoryβ
Maybe<SchemaEntity>
The category of the schema entity
Returnsβ
string
The slugified group name or empty string if no group is found