Schema Documentation

tag

Description

A 0bject

Response

Returns a Tag

Arguments
NameDescription
id - ID! The globally unique identifier of the object.
idType - TagIdType Type of unique identifier to fetch by. Default is Global ID

Example

Query
query tag(
  $id: ID!,
  $idType: TagIdType
){
  tag(
    id: $id,
    idType: $idType
  ){
    contentNodes {
      ...TagToContentNodeConnectionFragment
    }countdatabaseIddescriptionenqueuedScripts {
      ...TermNodeToEnqueuedScriptConnectionFragment
    }enqueuedStylesheets {
      ...TermNodeToEnqueuedStylesheetConnectionFragment
    }idisContentNodeisRestrictedisTermNodelinknameposts {
      ...TagToPostConnectionFragment
    }seo {
      ...TaxonomySEOFragment
    }slugtagIdtaxonomy {
      ...TagToTaxonomyConnectionEdgeFragment
    }taxonomyNametermGroupIdtermTaxonomyIduri
  }
}
Variables
{"id":4,"idType":"DATABASE_ID"}
Response
{"data":{"tag":{"contentNodes":TagToContentNodeConnection,"count":123,"databaseId":123,"description":"abc123","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":4,"isContentNode":true,"isRestricted":true,"isTermNode":true,"link":"xyz789","name":"abc123","posts":TagToPostConnection,"seo":TaxonomySEO,"slug":"xyz789","tagId":123,"taxonomy":TagToTaxonomyConnectionEdge,"taxonomyName":"xyz789","termGroupId":987,"termTaxonomyId":987,"uri":"xyz789"}}}