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":"xyz789","catalogVisibility":"CATALOG","commentCount":123,"commentStatus":"abc123","comments":ProductToCommentsConnection,"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"abc123","databaseId":987,"date":"abc123","dateGmt":"abc123","dateOnSaleFrom":"abc123","dateOnSaleTo":"abc123","defaultAttributes":ExternalProductToVariationAttributeConnection,"description":"abc123","desiredSlug":"xyz789","editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[ProductEditorBlock],"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"excerpt":"xyz789","externalUrl":"xyz789","featured":false,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":987,"featuredImageId":"4","galleryImages":ProductToMediaItemConnection,"globalAttributes":ProductToGlobalProductAttributeConnection,"guid":"abc123","id":4,"image":MediaItem,"isContentNode":true,"isPreview":true,"isRestricted":true,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"link":"xyz789","localAttributes":ProductToLocalProductAttributeConnection,"menuOrder":987,"metaData":[MetaData],"modified":"xyz789","modifiedGmt":"xyz789","name":"abc123","onSale":false,"preview":ProductToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":4,"price":"abc123","productCategories":ProductToProductCategoryConnection,"productId":123,"productTags":ProductToProductTagConnection,"productTypes":ProductToProductTypeConnection,"purchasable":false,"purchaseNote":"xyz789","regularPrice":"abc123","related":ProductToProductConnection,"reviewCount":123,"reviews":ProductToCommentConnection,"reviewsAllowed":true,"salePrice":"abc123","seo":PostTypeSEO,"shippingClasses":ProductToShippingClassConnection,"shortDescription":"abc123","sku":"xyz789","slug":"abc123","status":"abc123","taxClass":"INHERIT_CART","taxStatus":"NONE","template":ContentTemplate,"terms":ProductToTermNodeConnection,"title":"xyz789","totalSales":123,"type":"BUNDLE","upsell":ProductToUpsellConnection,"uri":"xyz789","visibleProducts":ProductToVisibleProductConnection}}}