All entries are assigned to a category (for example “Hotel”) and to a higher-level category group (for example “Accommodation”).
This gives you an overview of all available categories and category groups:
AllEntries {
availableCategories {
groupKey
groupName
key
name
}
}
This is how you get the category and category group of a specific entry:
AllEntries {
entry(entryId: "8f62bea4-b778-46e2-ac49-dda6a4ef2680") {
name
categories {
groupKey
groupName
key
name
}
}