Schema Documentation

variableProduct

Use "product" instead.
Description

A variable product object

Response

Returns a VariableProduct

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

Example

Query
query variableProduct(  $id: ID,  $idType: ProductIdTypeEnum){  variableProduct(    id: $id,    idType: $idType  ){    addons {      ...ProductAddonFieldFragment    }allPaColor {      ...ProductToPaColorConnectionFragment    }allPaSize {      ...ProductToPaSizeConnectionFragment    }attributes {      ...ProductToProductAttributeConnectionFragment    }averageRatingbackordersbackordersAllowedcatalogVisibilitycommentCountcommentStatuscomments {      ...ProductToCommentsConnectionFragment    }contentcontentType {      ...ContentNodeToContentTypeConnectionEdgeFragment    }contentTypeNamecrossSell {      ...VariableProductToProductUnionConnectionFragment    }databaseIddatedateGmtdateOnSaleFromdateOnSaleTodefaultAttributes {      ...ProductWithAttributesToVariationAttributeConnectionFragment    }descriptiondesiredSlugeditingLockedBy {      ...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    }urivariations {      ...ProductWithVariationsToProductVariationConnectionFragment    }visibleProducts {      ...ProductToVisibleProductConnectionFragment    }weightwidth  }}
Variables
{"id":4,"idType":"DATABASE_ID"}
Response
{"data":{"variableProduct":{"addons":[ProductAddonField],"allPaColor":ProductToPaColorConnection,"allPaSize":ProductToPaSizeConnection,"attributes":ProductToProductAttributeConnection,"averageRating":987.65,"backorders":"NO","backordersAllowed":false,"catalogVisibility":"CATALOG","commentCount":987,"commentStatus":"xyz789","comments":ProductToCommentsConnection,"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"xyz789","crossSell":VariableProductToProductUnionConnection,"databaseId":987,"date":"abc123","dateGmt":"xyz789","dateOnSaleFrom":"abc123","dateOnSaleTo":"abc123","defaultAttributes":ProductWithAttributesToVariationAttributeConnection,"description":"xyz789","desiredSlug":"xyz789","editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[ProductEditorBlock],"enclosure":"abc123","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"excerpt":"xyz789","featured":true,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":987,"featuredImageId":"4","galleryImages":ProductToMediaItemConnection,"globalAttributes":ProductToGlobalProductAttributeConnection,"guid":"abc123","height":"xyz789","id":"4","image":MediaItem,"isContentNode":true,"isPreview":false,"isRestricted":true,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"length":"abc123","link":"abc123","localAttributes":ProductToLocalProductAttributeConnection,"lowStockAmount":123,"manageStock":"FALSE","menuOrder":987,"metaData":[MetaData],"modified":"xyz789","modifiedGmt":"xyz789","name":"xyz789","onSale":false,"preview":ProductToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":4,"price":"abc123","productCategories":ProductToProductCategoryConnection,"productId":987,"productTags":ProductToProductTagConnection,"productTypes":ProductToProductTypeConnection,"purchasable":false,"purchaseNote":"xyz789","regularPrice":"xyz789","related":ProductToProductUnionConnection,"reviewCount":123,"reviews":ProductToCommentConnection,"reviewsAllowed":true,"salePrice":"xyz789","seo":PostTypeSEO,"shippingClassId":123,"shippingClasses":ProductToShippingClassConnection,"shippingRequired":true,"shippingTaxable":false,"shortDescription":"abc123","sku":"abc123","slug":"abc123","soldIndividually":false,"status":"abc123","stockQuantity":987,"stockStatus":"IN_STOCK","taxClass":"INHERIT_CART","taxStatus":"NONE","template":ContentTemplate,"terms":ProductToTermNodeConnection,"title":"xyz789","totalSales":123,"type":"BUNDLE","upsell":ProductToUpsellConnection,"uri":"abc123","variations":ProductWithVariationsToProductVariationConnection,"visibleProducts":ProductToVisibleProductConnection,"weight":"abc123","width":"xyz789"}}}