Schema Documentation

simpleProduct

Use "product" instead.
Description

A simple product object

Response

Returns a SimpleProduct

Arguments
NameDescription
id - ID The ID for identifying the SimpleProduct product
idType - ProductIdTypeEnum Type of ID being used identify product

Example

Query
query simpleProduct(  $id: ID,  $idType: ProductIdTypeEnum){  simpleProduct(    id: $id,    idType: $idType  ){    addons {      ...ProductAddonFieldFragment    }allPaColor {      ...ProductToPaColorConnectionFragment    }allPaSize {      ...ProductToPaSizeConnectionFragment    }attributes {      ...ProductToProductAttributeConnectionFragment    }averageRatingbackordersbackordersAllowedcatalogVisibilitycommentCountcommentStatuscomments {      ...ProductToCommentsConnectionFragment    }contentcontentType {      ...ContentNodeToContentTypeConnectionEdgeFragment    }contentTypeNamecrossSell {      ...SimpleProductToProductUnionConnectionFragment    }databaseIddatedateGmtdateOnSaleFromdateOnSaleTodefaultAttributes {      ...ProductWithAttributesToVariationAttributeConnectionFragment    }descriptiondesiredSlugdownloadExpirydownloadLimitdownloadabledownloads {      ...ProductDownloadFragment    }editingLockedBy {      ...ContentNodeToEditLockConnectionEdgeFragment    }editorBlocks {      ...ProductEditorBlockFragment    }enclosureenqueuedScripts {      ...ContentNodeToEnqueuedScriptConnectionFragment    }enqueuedStylesheets {      ...ContentNodeToEnqueuedStylesheetConnectionFragment    }excerptfeaturedfeaturedImage {      ...NodeWithFeaturedImageToMediaItemConnectionEdgeFragment    }featuredImageDatabaseIdfeaturedImageIdgalleryImages {      ...ProductToMediaItemConnectionFragment    }globalAttributes {      ...ProductToGlobalProductAttributeConnectionFragment    }guidheightidimage {      ...MediaItemFragment    }isContentNodeisPreviewisRestrictedisTermNodelastEditedBy {      ...ContentNodeToEditLastConnectionEdgeFragment    }lengthlinklocalAttributes {      ...ProductToLocalProductAttributeConnectionFragment    }lowStockAmountmanageStockmenuOrdermetaData {      ...MetaDataFragment    }modifiedmodifiedGmtnameonSalepreview {      ...ProductToPreviewConnectionEdgeFragment    }previewRevisionDatabaseIdpreviewRevisionIdpriceproductCategories {      ...ProductToProductCategoryConnectionFragment    }productIdproductTags {      ...ProductToProductTagConnectionFragment    }productTypes {      ...ProductToProductTypeConnectionFragment    }purchasablepurchaseNoteregularPricerelated {      ...ProductToProductUnionConnectionFragment    }reviewCountreviews {      ...ProductToCommentConnectionFragment    }reviewsAllowedsalePriceseo {      ...PostTypeSEOFragment    }shippingClassIdshippingClasses {      ...ProductToShippingClassConnectionFragment    }shippingRequiredshippingTaxableshortDescriptionskuslugsoldIndividuallystatusstockQuantitystockStatustaxClasstaxStatustemplate {      ...ContentTemplateFragment    }terms {      ...ProductToTermNodeConnectionFragment    }titletotalSalestypeupsell {      ...ProductToUpsellConnectionFragment    }urivirtualvisibleProducts {      ...ProductToVisibleProductConnectionFragment    }weightwidth  }}
Variables
{"id":"4","idType":"DATABASE_ID"}
Response
{"data":{"simpleProduct":{"addons":[ProductAddonField],"allPaColor":ProductToPaColorConnection,"allPaSize":ProductToPaSizeConnection,"attributes":ProductToProductAttributeConnection,"averageRating":987.65,"backorders":"NO","backordersAllowed":false,"catalogVisibility":"CATALOG","commentCount":123,"commentStatus":"xyz789","comments":ProductToCommentsConnection,"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"abc123","crossSell":SimpleProductToProductUnionConnection,"databaseId":123,"date":"xyz789","dateGmt":"abc123","dateOnSaleFrom":"abc123","dateOnSaleTo":"abc123","defaultAttributes":ProductWithAttributesToVariationAttributeConnection,"description":"xyz789","desiredSlug":"xyz789","downloadExpiry":987,"downloadLimit":123,"downloadable":true,"downloads":[ProductDownload],"editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[ProductEditorBlock],"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"excerpt":"abc123","featured":true,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":987,"featuredImageId":4,"galleryImages":ProductToMediaItemConnection,"globalAttributes":ProductToGlobalProductAttributeConnection,"guid":"abc123","height":"abc123","id":"4","image":MediaItem,"isContentNode":true,"isPreview":false,"isRestricted":true,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"length":"abc123","link":"xyz789","localAttributes":ProductToLocalProductAttributeConnection,"lowStockAmount":123,"manageStock":"FALSE","menuOrder":987,"metaData":[MetaData],"modified":"xyz789","modifiedGmt":"abc123","name":"abc123","onSale":false,"preview":ProductToPreviewConnectionEdge,"previewRevisionDatabaseId":123,"previewRevisionId":"4","price":"xyz789","productCategories":ProductToProductCategoryConnection,"productId":123,"productTags":ProductToProductTagConnection,"productTypes":ProductToProductTypeConnection,"purchasable":true,"purchaseNote":"xyz789","regularPrice":"xyz789","related":ProductToProductUnionConnection,"reviewCount":987,"reviews":ProductToCommentConnection,"reviewsAllowed":true,"salePrice":"xyz789","seo":PostTypeSEO,"shippingClassId":987,"shippingClasses":ProductToShippingClassConnection,"shippingRequired":false,"shippingTaxable":true,"shortDescription":"xyz789","sku":"abc123","slug":"abc123","soldIndividually":true,"status":"abc123","stockQuantity":987,"stockStatus":"IN_STOCK","taxClass":"INHERIT_CART","taxStatus":"NONE","template":ContentTemplate,"terms":ProductToTermNodeConnection,"title":"abc123","totalSales":987,"type":"BUNDLE","upsell":ProductToUpsellConnection,"uri":"abc123","virtual":false,"visibleProducts":ProductToVisibleProductConnection,"weight":"xyz789","width":"xyz789"}}}