Schema Documentation
ProductAddon
Description
The ProductAddon type
Fields
Field Name | Description |
---|---|
productAddonId - Int! | The id field matches the WP_Post->ID field. Deprecated in favor of the databaseId field |
contentType - ContentNodeToContentTypeConnectionEdge | Connection between the ContentNode type and the ContentType type |
contentTypeName - String! | The name of the Content Type the node belongs to |
databaseId - Int! | The unique identifier stored in the database |
date - String | Post publishing date. |
dateGmt - String | The publishing date set in GMT. |
desiredSlug - String | The desired slug of the post |
editingLockedBy - ContentNodeToEditLockConnectionEdge | If a user has edited the node within the past 15 seconds, this will return the user that last edited. Null if the edit lock doesn't exist or is greater than 15 seconds |
enclosure - String | The RSS enclosure for the object |
enqueuedScripts - ContentNodeToEnqueuedScriptConnection | Connection between the ContentNode type and the EnqueuedScript type |
Arguments
| |
enqueuedStylesheets - ContentNodeToEnqueuedStylesheetConnection | Connection between the ContentNode type and the EnqueuedStylesheet type |
Arguments
| |
guid - String | The global unique identifier for this post. This currently matches the value stored in WP_Post->guid and the guid column in the "post_objects" database table. |
id - ID! | The globally unique identifier of the global_product_addon object. |
isContentNode - Boolean! | Whether the node is a Content Node |
isPreview - Boolean | Whether the object is a node in the preview state |
isRestricted - Boolean | Whether the object is restricted from the current viewer |
isTermNode - Boolean! | Whether the node is a Term |
lastEditedBy - ContentNodeToEditLastConnectionEdge | The user that most recently edited the node |
link - String | The permalink of the post |
modified - String | The local modified time for a post. If a post was recently updated the modified field will change to match the corresponding time. |
modifiedGmt - String | The GMT modified time for a post. If a post was recently updated the modified field will change to match the corresponding time in GMT. |
preview - ProductAddonToPreviewConnectionEdge | Connection between the ProductAddon type and the ProductAddon type The "ProductAddon" Type is not publicly queryable and does not support previews. This field will be removed in the future. |
previewRevisionDatabaseId - Int | The database id of the preview node |
previewRevisionId - ID | Whether the object is a node in the preview state |
productCategories - ProductAddonToProductCategoryConnection | Connection between the ProductAddon type and the productCategory type |
Arguments
| |
seo - PostTypeSEO | The Yoast SEO data of the ContentNode |
slug - String | The uri slug for the post. This is equivalent to the WP_Post->post_name field and the post_name column in the database for the "post_objects" table. |
status - String | The current status of the object |
template - ContentTemplate | The template assigned to the node |
terms - ProductAddonToTermNodeConnection | Connection between the ProductAddon type and the TermNode type |
Arguments
| |
title - String | The title of the post. This is currently just the raw title. An amendment to support rendered title needs to be made. |
Arguments
| |
uri - String | The unique resource identifier path |
Example
{"productAddonId":987,"contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"abc123","databaseId":123,"date":"xyz789","dateGmt":"xyz789","desiredSlug":"xyz789","editingLockedBy":ContentNodeToEditLockConnectionEdge,"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"guid":"abc123","id":"4","isContentNode":false,"isPreview":false,"isRestricted":false,"isTermNode":true,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"link":"abc123","modified":"xyz789","modifiedGmt":"xyz789","preview":ProductAddonToPreviewConnectionEdge,"previewRevisionDatabaseId":123,"previewRevisionId":"4","productCategories":ProductAddonToProductCategoryConnection,"seo":PostTypeSEO,"slug":"xyz789","status":"abc123","template":ContentTemplate,"terms":ProductAddonToTermNodeConnection,"title":"xyz789","uri":"abc123"}