Documentation Center

Sample queries: two ways of fetching a topic

There are two ways to retrieve a topic: using a relative URL, or using a publication ID and topic ID.

The following sample uses a relative URL to retrieve the title of a topic:
ishTopic(url:"2778701/1184166/penguin-guide/great-penguins-aptenodytes-") {
    title
}
And this sample uses a publication ID (the same as the first integer in the relative URL) and topic ID (the same as the second integer) to retriever the title of the same topic:
{
  ishTopic(publicationId: 2778701, itemId: 1184166) {
    title
  }
}