Skip to main content

ProductContentItem

This has a many to one relationship with Product, and provides a connection to the CDN items.

type ProductContentItem {
alt: String
category: String
contentItemId: ID!
contentKey: String!
contentType: ProductContentType!
createdAt: Date!
demandHqId: ID!
position: Int
productId: ID!
sourceDetail: String!
sourceType: ProductContentItemSourceType!
updatedAt: Date!
updatedBy: String!
}

Fields​

ProductContentItem.alt ● String scalar​

ProductContentItem.category ● String scalar​

ProductContentItem.contentItemId ● ID! non-null scalar​

ProductContentItem.contentKey ● String! non-null scalar​

The key to the file in the CDN

ProductContentItem.contentType ● ProductContentType! non-null enum​

ProductContentItem.createdAt ● Date! non-null scalar​

ProductContentItem.demandHqId ● ID! non-null scalar​

ProductContentItem.position ● Int scalar​

Used to determine what order the content comes out in. Positive Integers are allowed, up to 9,999,999,999, and it does not have to be unique or sequential.

ProductContentItem.productId ● ID! non-null scalar​

ProductContentItem.sourceDetail ● String! non-null scalar​

The original URL, or some kind of file pointer, based on sourceType

ProductContentItem.sourceType ● ProductContentItemSourceType! non-null enum​

How did we receive this content item?

ProductContentItem.updatedAt ● Date! non-null scalar​

ProductContentItem.updatedBy ● String! non-null scalar​

Returned by​

createProductImageFromUrl mutation ● updateProductContentItem mutation

Member of​

Product object ● ProductContentItemConnection object ● ProductContentItemEdge object ● ProductImageFromFileResponse object ● Variant object