Fetching Topic Name
The topic connected with an item can be easily fetched using the Catalogue API. The following query fetches all the topics associated with a specific product. The Topic type is used for this purpose.
Fetching all Items in a Topic Map
Using the Topic type, you can also fetch all the items connected with a topic map. Then you can use any of the fields mentioned in the query fields section to get more data about the item. Below, we are only getting the names.
You can fetch the parent of a topic map with the help of the parent field.