Schema Documentation

externalProduct

Use "product" instead.
Description

A external product object

Response

Returns an ExternalProduct

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