Schema Documentation
externalProduct
Description
A external product object
Response
Returns an ExternalProduct
Arguments
Name | Description |
---|---|
id - ID | The ID for identifying the ExternalProduct product |
idType - ProductIdTypeEnum | Type of ID being used identify product |
Example
Query
query externalProduct( $id: ID, $idType: ProductIdTypeEnum){ externalProduct( id: $id, idType: $idType ){ addons { ...ProductAddonFieldFragment }allPaColor { ...ProductToPaColorConnectionFragment }allPaSize { ...ProductToPaSizeConnectionFragment }attributes { ...ProductToProductAttributeConnectionFragment }averageRatingbuttonTextcatalogVisibilitycommentCountcommentStatuscomments { ...ProductToCommentsConnectionFragment }contentcontentType { ...ContentNodeToContentTypeConnectionEdgeFragment }contentTypeNamedatabaseIddatedateGmtdateOnSaleFromdateOnSaleTodefaultAttributes { ...ExternalProductToVariationAttributeConnectionFragment }descriptiondesiredSlugeditingLockedBy { ...ContentNodeToEditLockConnectionEdgeFragment }editorBlocks { ...ProductEditorBlockFragment }enclosureenqueuedScripts { ...ContentNodeToEnqueuedScriptConnectionFragment }enqueuedStylesheets { ...ContentNodeToEnqueuedStylesheetConnectionFragment }excerptexternalUrlfeaturedfeaturedImage { ...NodeWithFeaturedImageToMediaItemConnectionEdgeFragment }featuredImageDatabaseIdfeaturedImageIdgalleryImages { ...ProductToMediaItemConnectionFragment }globalAttributes { ...ProductToGlobalProductAttributeConnectionFragment }guididimage { ...MediaItemFragment }isContentNodeisPreviewisRestrictedisTermNodelastEditedBy { ...ContentNodeToEditLastConnectionEdgeFragment }linklocalAttributes { ...ProductToLocalProductAttributeConnectionFragment }menuOrdermetaData { ...MetaDataFragment }modifiedmodifiedGmtnameonSalepreview { ...ProductToPreviewConnectionEdgeFragment }previewRevisionDatabaseIdpreviewRevisionIdpriceproductCategories { ...ProductToProductCategoryConnectionFragment }productIdproductTags { ...ProductToProductTagConnectionFragment }productTypes { ...ProductToProductTypeConnectionFragment }purchasablepurchaseNoteregularPricerelated { ...ProductToProductConnectionFragment }reviewCountreviews { ...ProductToCommentConnectionFragment }reviewsAllowedsalePriceseo { ...PostTypeSEOFragment }shippingClasses { ...ProductToShippingClassConnectionFragment }shortDescriptionskuslugstatustaxClasstaxStatustemplate { ...ContentTemplateFragment }terms { ...ProductToTermNodeConnectionFragment }titletotalSalestypeupsell { ...ProductToUpsellConnectionFragment }urivisibleProducts { ...ProductToVisibleProductConnectionFragment } }}
Variables
{"id":"4","idType":"DATABASE_ID"}
Response
{"data":{"externalProduct":{"addons":[ProductAddonField],"allPaColor":ProductToPaColorConnection,"allPaSize":ProductToPaSizeConnection,"attributes":ProductToProductAttributeConnection,"averageRating":987.65,"buttonText":"abc123","catalogVisibility":"CATALOG","commentCount":987,"commentStatus":"xyz789","comments":ProductToCommentsConnection,"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"xyz789","databaseId":123,"date":"xyz789","dateGmt":"xyz789","dateOnSaleFrom":"xyz789","dateOnSaleTo":"xyz789","defaultAttributes":ExternalProductToVariationAttributeConnection,"description":"xyz789","desiredSlug":"xyz789","editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[ProductEditorBlock],"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"excerpt":"abc123","externalUrl":"xyz789","featured":true,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":123,"featuredImageId":"4","galleryImages":ProductToMediaItemConnection,"globalAttributes":ProductToGlobalProductAttributeConnection,"guid":"abc123","id":4,"image":MediaItem,"isContentNode":true,"isPreview":true,"isRestricted":true,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"link":"abc123","localAttributes":ProductToLocalProductAttributeConnection,"menuOrder":123,"metaData":[MetaData],"modified":"abc123","modifiedGmt":"xyz789","name":"xyz789","onSale":false,"preview":ProductToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":"4","price":"abc123","productCategories":ProductToProductCategoryConnection,"productId":123,"productTags":ProductToProductTagConnection,"productTypes":ProductToProductTypeConnection,"purchasable":true,"purchaseNote":"xyz789","regularPrice":"abc123","related":ProductToProductConnection,"reviewCount":987,"reviews":ProductToCommentConnection,"reviewsAllowed":false,"salePrice":"abc123","seo":PostTypeSEO,"shippingClasses":ProductToShippingClassConnection,"shortDescription":"xyz789","sku":"abc123","slug":"xyz789","status":"abc123","taxClass":"INHERIT_CART","taxStatus":"NONE","template":ContentTemplate,"terms":ProductToTermNodeConnection,"title":"abc123","totalSales":987,"type":"BUNDLE","upsell":ProductToUpsellConnection,"uri":"abc123","visibleProducts":ProductToVisibleProductConnection}}}