Product
A product.
type Product implements Node {
categories(
first: Int
orderBy: CategoryOrderInput
skip: Int
): CategoryConnection!
defaultVariant: ProductVariant!
id: UUID!
internalName: String!
isPubliclyVisible: Boolean!
variants(
filter: ProductVariantFilterInput
first: Int
orderBy: ProductVariantOrderInput
skip: Int
): ProductVariantConnection!
discounts(
first: Int
orderBy: DiscountOrderInput
skip: Int
): DiscountConnection!
reviews(
first: Int
skip: Int
orderBy: ReviewOrderInput
): ReviewConnection!
averageRating: Float
}
Fields
Product.categories
● CategoryConnection!
non-null object
Get all associated Categories
Product.categories.first
●Int
scalarNumber of items to return
Product.categories.orderBy
● CategoryOrderInput
input
Ordering
Product.categories.skip
● Int
scalar
Number of items to skip
Product.defaultVariant
● ProductVariant!
non-null object
The default variant of the product.
Product.id
● UUID!
non-null scalar
The ID of the node.
Product.internalName
● String!
non-null scalar
An internal name to identify the Product, not visible to customers.
Product.isPubliclyVisible
● Boolean!
non-null scalar
If true, the Product is visible to customers.
Product.variants
● ProductVariantConnection!
non-null object
Get all associated ProductVariants
Product.variants.filter
●ProductVariantFilterInput
inputFiltering
Product.variants.first
● Int
scalar
Number of items to return
Product.variants.orderBy
● ProductVariantOrderInput
input
Ordering
Product.variants.skip
● Int
scalar
Number of items to skip
Product.discounts
● DiscountConnection!
non-null object
Get all discounts which apply directly to this product
Product.discounts.first
●Int
scalarNumber of items to return
Product.discounts.orderBy
● DiscountOrderInput
input
Ordering
Product.discounts.skip
● Int
scalar
Number of items to skip
Product.reviews
● ReviewConnection!
non-null object
Retrieves reviews of product.
Product.reviews.first
●Int
scalarDescribes that the
first
N reviews should be retrieved.
Product.reviews.skip
● Int
scalar
Describes how many reviews should be skipped at the beginning.
Product.reviews.orderBy
● ReviewOrderInput
input
Specifies the order in which reviews are retrieved.
Product.averageRating
● Float
scalar
Retrieves average rating of product.
Interfaces
Node
interface
An object with an ID.
Returned By
createProduct
mutation ● product
query ● updateProduct
mutation
Member Of
ProductConnection
object ● ProductVariant
object