Schema Documentation
simpleProduct
Description
A simple product object
Response
Returns a SimpleProduct
Arguments
Name | Description |
---|---|
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 { ...SimpleProductToProductConnectionFragment }databaseIddatedateGmtdateOnSaleFromdateOnSaleTodefaultAttributes { ...SimpleProductToVariationAttributeConnectionFragment }descriptiondesiredSlugdownloadExpirydownloadLimitdownloadabledownloads { ...ProductDownloadFragment }editingLockedBy { ...ContentNodeToEditLockConnectionEdgeFragment }editorBlocks { ...ProductEditorBlockFragment }enclosureenqueuedScripts { ...ContentNodeToEnqueuedScriptConnectionFragment }enqueuedStylesheets { ...ContentNodeToEnqueuedStylesheetConnectionFragment }excerptfeaturedfeaturedImage { ...NodeWithFeaturedImageToMediaItemConnectionEdgeFragment }featuredImageDatabaseIdfeaturedImageIdgalleryImages { ...ProductToMediaItemConnectionFragment }globalAttributes { ...ProductToGlobalProductAttributeConnectionFragment }guidheightidimage { ...MediaItemFragment }isContentNodeisPreviewisRestrictedisTermNodelastEditedBy { ...ContentNodeToEditLastConnectionEdgeFragment }lengthlinklocalAttributes { ...ProductToLocalProductAttributeConnectionFragment }manageStockmenuOrdermetaData { ...MetaDataFragment }modifiedmodifiedGmtnameonSalepreview { ...ProductToPreviewConnectionEdgeFragment }previewRevisionDatabaseIdpreviewRevisionIdpriceproductCategories { ...ProductToProductCategoryConnectionFragment }productIdproductTags { ...ProductToProductTagConnectionFragment }productTypes { ...ProductToProductTypeConnectionFragment }purchasablepurchaseNoteregularPricerelated { ...ProductToProductConnectionFragment }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":123.45,"backorders":"NO","backordersAllowed":false,"catalogVisibility":"CATALOG","commentCount":987,"commentStatus":"abc123","comments":ProductToCommentsConnection,"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"xyz789","crossSell":SimpleProductToProductConnection,"databaseId":987,"date":"xyz789","dateGmt":"abc123","dateOnSaleFrom":"abc123","dateOnSaleTo":"xyz789","defaultAttributes":SimpleProductToVariationAttributeConnection,"description":"xyz789","desiredSlug":"xyz789","downloadExpiry":987,"downloadLimit":987,"downloadable":false,"downloads":[ProductDownload],"editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[ProductEditorBlock],"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"excerpt":"xyz789","featured":false,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":987,"featuredImageId":"4","galleryImages":ProductToMediaItemConnection,"globalAttributes":ProductToGlobalProductAttributeConnection,"guid":"abc123","height":"xyz789","id":4,"image":MediaItem,"isContentNode":true,"isPreview":true,"isRestricted":false,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"length":"xyz789","link":"xyz789","localAttributes":ProductToLocalProductAttributeConnection,"manageStock":false,"menuOrder":987,"metaData":[MetaData],"modified":"xyz789","modifiedGmt":"xyz789","name":"abc123","onSale":true,"preview":ProductToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":"4","price":"abc123","productCategories":ProductToProductCategoryConnection,"productId":123,"productTags":ProductToProductTagConnection,"productTypes":ProductToProductTypeConnection,"purchasable":false,"purchaseNote":"abc123","regularPrice":"xyz789","related":ProductToProductConnection,"reviewCount":987,"reviews":ProductToCommentConnection,"reviewsAllowed":true,"salePrice":"xyz789","seo":PostTypeSEO,"shippingClassId":987,"shippingClasses":ProductToShippingClassConnection,"shippingRequired":false,"shippingTaxable":true,"shortDescription":"xyz789","sku":"abc123","slug":"xyz789","soldIndividually":true,"status":"xyz789","stockQuantity":987,"stockStatus":"IN_STOCK","taxClass":"INHERIT_CART","taxStatus":"NONE","template":ContentTemplate,"terms":ProductToTermNodeConnection,"title":"xyz789","totalSales":987,"type":"BUNDLE","upsell":ProductToUpsellConnection,"uri":"xyz789","virtual":false,"visibleProducts":ProductToVisibleProductConnection,"weight":"xyz789","width":"xyz789"}}}