Schema Documentation

productAddon

Description

An object of the ProductAddon Type.

Response

Returns a ProductAddon

Arguments
NameDescription
id - ID! The globally unique identifier of the object.
idType - ProductAddonIdType Type of unique identifier to fetch by. Default is Global ID
asPreview - Boolean Whether to return the Preview Node instead of the Published Node. When the ID of a Node is provided along with asPreview being set to true, the preview node with un-published changes will be returned instead of the published node. If no preview node exists or the requestor doesn't have proper capabilities to preview, no node will be returned.

Example

Query
query productAddon(  $id: ID!,  $idType: ProductAddonIdType,$asPreview: Boolean){  productAddon(    id: $id,    idType: $idType,    asPreview: $asPreview  ){    productAddonIdcontentType {      ...ContentNodeToContentTypeConnectionEdgeFragment    }contentTypeNamedatabaseIddatedateGmtdesiredSlugeditingLockedBy {      ...ContentNodeToEditLockConnectionEdgeFragment    }enclosureenqueuedScripts {      ...ContentNodeToEnqueuedScriptConnectionFragment    }enqueuedStylesheets {      ...ContentNodeToEnqueuedStylesheetConnectionFragment    }guididisContentNodeisPreviewisRestrictedisTermNodelastEditedBy {      ...ContentNodeToEditLastConnectionEdgeFragment    }linkmodifiedmodifiedGmtpreview {      ...ProductAddonToPreviewConnectionEdgeFragment    }previewRevisionDatabaseIdpreviewRevisionIdproductCategories {      ...ProductAddonToProductCategoryConnectionFragment    }seo {      ...PostTypeSEOFragment    }slugstatustemplate {      ...ContentTemplateFragment    }terms {      ...ProductAddonToTermNodeConnectionFragment    }titleuri  }}
Variables
{"id":"4","idType":"DATABASE_ID","asPreview":true}
Response
{"data":{"productAddon":{"productAddonId":987,"contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"xyz789","databaseId":123,"date":"xyz789","dateGmt":"abc123","desiredSlug":"xyz789","editingLockedBy":ContentNodeToEditLockConnectionEdge,"enclosure":"abc123","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"guid":"abc123","id":4,"isContentNode":true,"isPreview":false,"isRestricted":true,"isTermNode":true,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"link":"xyz789","modified":"abc123","modifiedGmt":"xyz789","preview":ProductAddonToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":"4","productCategories":ProductAddonToProductCategoryConnection,"seo":PostTypeSEO,"slug":"xyz789","status":"abc123","template":ContentTemplate,"terms":ProductAddonToTermNodeConnection,"title":"xyz789","uri":"xyz789"}}}