Documentation Center

GraphQL request for getting Publications containing topics tagged with a specific Keyword

To find out which Publication or Publications contain the content that is tagged with a specific Keyword, execute a specific items() query. This type of query can be useful in, say, a mashup scenario, where you want to identify the context in which your "mashable" content resides.

In this example, you query for all Publications containing content tagged with all three specified custom metadata key-value pairs:
{
  items(
    filter: {
      itemTypes: [PUBLICATION],
      and: [
        # Items in the Publication that are tagged with a Taxonomy Keyword with ID 9006
        { customMeta: {scope: ItemInPublication, key: "FMBCONTENTREFTYPE+logical+element", value: "9006"} },
        # Items in English
        { customMeta: {scope: ItemInPublication, key: "DOC-LANGUAGE+lng+value", value: "en"} },
        # Publications matching a given product release name
        { customMeta: {key: "FMBCONTENTRELEASENAME+version+element", value: "9019"} }
      ]
    }
  ) {
    edges {
      node {
        id
        publicationId
        namespaceId
        itemId
        itemType
        title
        customMetas {
          edges {
            node {
              key
              value
            }
          }
        }
      }
    }
  }
}