Schema Documentation

productAddonBy

Deprecated in favor of using the single entry point for this type with ID and IDType fields. For example, instead of postBy( id: "" ), use post(id: "" idType: "")
Description

A ProductAddon object

Response

Returns a ProductAddon

Arguments
NameDescription
id - ID Get the ProductAddon object by its global ID
productAddonId - Int Get the ProductAddon by its database ID
uri - String Get the ProductAddon by its uri
slug - String Get the ProductAddon by its slug (only available for non-hierarchical types)

Example

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