Schema Documentation
tag
Description
A 0bject
Response
Returns a Tag
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":987,"databaseId":987,"description":"abc123","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":"4","isContentNode":true,"isRestricted":false,"isTermNode":true,"link":"abc123","name":"xyz789","posts":TagToPostConnection,"seo":TaxonomySEO,"slug":"abc123","tagId":987,"taxonomy":TagToTaxonomyConnectionEdge,"taxonomyName":"xyz789","termGroupId":987,"termTaxonomyId":123,"uri":"xyz789"}}}