Schema Documentation
compositeProduct
Use "product" instead.
Description
A composite product object
Response
Returns a CompositeProduct
Arguments
Name | Description |
---|---|
id - ID | The ID for identifying the CompositeProduct product |
idType - ProductIdTypeEnum | Type of ID being used identify product |
Example
Query
query compositeProduct( $id: ID, $idType: ProductIdTypeEnum){ compositeProduct( id: $id, idType: $idType ){ addToCartFormLocationaddons { ...ProductAddonFieldFragment }allPaColor { ...ProductToPaColorConnectionFragment }allPaSize { ...ProductToPaSizeConnectionFragment }attributes { ...ProductToProductAttributeConnectionFragment }averageRatingbackordersbackordersAllowedcatalogVisibilitycommentCountcommentStatuscomments { ...ProductToCommentsConnectionFragment }components { ...CompositeProductComponentFragment }contentcontentType { ...ContentNodeToContentTypeConnectionEdgeFragment }contentTypeNamedatabaseIddatedateGmtdateOnSaleFromdateOnSaleTodefaultAttributes { ...ProductWithAttributesToVariationAttributeConnectionFragment }descriptiondesiredSlugeditableInCarteditingLockedBy { ...ContentNodeToEditLockConnectionEdgeFragment }editorBlocks { ...ProductEditorBlockFragment }enclosureenqueuedScripts { ...ContentNodeToEnqueuedScriptConnectionFragment }enqueuedStylesheets { ...ContentNodeToEnqueuedStylesheetConnectionFragment }excerptfeaturedfeaturedImage { ...NodeWithFeaturedImageToMediaItemConnectionEdgeFragment }featuredImageDatabaseIdfeaturedImageIdgalleryImages { ...ProductToMediaItemConnectionFragment }globalAttributes { ...ProductToGlobalProductAttributeConnectionFragment }guidheightidimage { ...MediaItemFragment }isContentNodeisPreviewisRestrictedisTermNodelastEditedBy { ...ContentNodeToEditLastConnectionEdgeFragment }layoutlengthlinklocalAttributes { ...ProductToLocalProductAttributeConnectionFragment }lowStockAmountmanageStockmenuOrdermetaData { ...MetaDataFragment }modifiedmodifiedGmtnameonSalepreview { ...ProductToPreviewConnectionEdgeFragment }previewRevisionDatabaseIdpreviewRevisionIdpriceproductCategories { ...ProductToProductCategoryConnectionFragment }productIdproductTags { ...ProductToProductTagConnectionFragment }productTypes { ...ProductToProductTypeConnectionFragment }purchasablepurchaseNoteregularPricerelated { ...ProductToProductUnionConnectionFragment }reviewCountreviews { ...ProductToCommentConnectionFragment }reviewsAllowedsalePricescenarios { ...CompositeProductScenarioFragment }seo { ...PostTypeSEOFragment }shippingClassIdshippingClasses { ...ProductToShippingClassConnectionFragment }shippingRequiredshippingTaxableshopPriceCalculationshortDescriptionskuslugsoldIndividuallysoldIndividuallyContextstatusstockQuantitystockStatustaxClasstaxStatustemplate { ...ContentTemplateFragment }terms { ...ProductToTermNodeConnectionFragment }titletotalSalestypeupsell { ...ProductToUpsellConnectionFragment }urivirtualCompositevisibleProducts { ...ProductToVisibleProductConnectionFragment }weightwidth }}
Variables
{"id":4,"idType":"DATABASE_ID"}
Response
{"data":{"compositeProduct":{"addToCartFormLocation":"BEFORE_TABS","addons":[ProductAddonField],"allPaColor":ProductToPaColorConnection,"allPaSize":ProductToPaSizeConnection,"attributes":ProductToProductAttributeConnection,"averageRating":123.45,"backorders":"NO","backordersAllowed":true,"catalogVisibility":"CATALOG","commentCount":123,"commentStatus":"abc123","comments":ProductToCommentsConnection,"components":[CompositeProductComponent],"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"xyz789","databaseId":123,"date":"abc123","dateGmt":"xyz789","dateOnSaleFrom":"abc123","dateOnSaleTo":"xyz789","defaultAttributes":ProductWithAttributesToVariationAttributeConnection,"description":"abc123","desiredSlug":"xyz789","editableInCart":true,"editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[ProductEditorBlock],"enclosure":"abc123","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"excerpt":"xyz789","featured":true,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":123,"featuredImageId":4,"galleryImages":ProductToMediaItemConnection,"globalAttributes":ProductToGlobalProductAttributeConnection,"guid":"abc123","height":"xyz789","id":4,"image":MediaItem,"isContentNode":true,"isPreview":true,"isRestricted":false,"isTermNode":true,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"layout":"COMPONENTIZED","length":"xyz789","link":"abc123","localAttributes":ProductToLocalProductAttributeConnection,"lowStockAmount":987,"manageStock":"FALSE","menuOrder":987,"metaData":[MetaData],"modified":"abc123","modifiedGmt":"xyz789","name":"abc123","onSale":true,"preview":ProductToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":"4","price":"abc123","productCategories":ProductToProductCategoryConnection,"productId":123,"productTags":ProductToProductTagConnection,"productTypes":ProductToProductTypeConnection,"purchasable":true,"purchaseNote":"xyz789","regularPrice":"abc123","related":ProductToProductUnionConnection,"reviewCount":123,"reviews":ProductToCommentConnection,"reviewsAllowed":false,"salePrice":"abc123","scenarios":[CompositeProductScenario],"seo":PostTypeSEO,"shippingClassId":987,"shippingClasses":ProductToShippingClassConnection,"shippingRequired":false,"shippingTaxable":false,"shopPriceCalculation":"CALCULATE_FROM_TO","shortDescription":"xyz789","sku":"abc123","slug":"xyz789","soldIndividually":true,"soldIndividuallyContext":"CONFIGURATION","status":"abc123","stockQuantity":987,"stockStatus":"IN_STOCK","taxClass":"INHERIT_CART","taxStatus":"NONE","template":ContentTemplate,"terms":ProductToTermNodeConnection,"title":"xyz789","totalSales":987,"type":"BUNDLE","upsell":ProductToUpsellConnection,"uri":"xyz789","virtualComposite":true,"visibleProducts":ProductToVisibleProductConnection,"weight":"abc123","width":"xyz789"}}}