Manufacturer
Describes a manufacturer.
Type Definition
type Manufacturer {
seoDescription: String
seoTitle: String
seoKeywords: String
id: Int
title: String
allProductsCount: Int
products: ProductConnection
image: String
filters: [Filter]
}
Fields
Field | Type | Nullable | Description | Related Type |
---|---|---|---|---|
seoDescription | String | Yes | Returns description for search engines. | |
seoTitle | String | Yes | Returns title for search engines. | |
seoKeywords | String | Yes | Returns keywords for search engines. | |
id | Int | Yes | Returns the id. | |
title | String | Yes | Returns the title. | |
allProductsCount | Int | Yes | Returns the total amount of products for this manufacturer. | |
products | ProductConnection | Yes | Connection to the products associated with this manufacturer. | ProductConnection |
image | String | Yes | Returns the image URL of the manufacturer. | |
filters | [Filter] | Yes | Returns the available filters for this manufacturer, or null if none are set. | [Filter] |
Relationships
- products: This field connects the
Manufacturer
to a paginated list of products (ProductConnection
) that belong to this manufacturer. - filters: Provides a list of available filters (
Filter
objects) that can be applied when querying products related to this manufacturer.
Usage Examples
Basic Query
{
manufacturer(id: 12345) {
id
title
seoTitle
seoDescription
seoKeywords
allProductsCount
image
}
}
Field Selection
{
manufacturer(id: 12345) {
title
allProductsCount
image
}
}
Nested Queries
{
manufacturer(id: 12345) {
title
products(first: 5) {
edges {
node {
id
title
price
}
}
pageInfo {
hasNextPage
endCursor
}
}
filters {
id
name
values
}
}
}
Filtering and Sorting
{
manufacturer(id: 12345) {
products(first: 10, filter: {priceRange: {min: 50, max: 200}}, sort: {field: PRICE, direction: ASC}) {
edges {
node {
id
title
price
}
}
}
}
}
Implements
This type does not implement any interfaces.
Connections
products
is a connection field returning aProductConnection
type, which supports pagination through arguments such asfirst
,last
,before
, andafter
.
Related Types
- ProductConnection: Represents a paginated list of products associated with the manufacturer.
- Filter: Represents filtering options available for the manufacturer’s products.
Best Practices
- Use the
products
connection with pagination arguments (first
,after
) to efficiently load products in batches and avoid large payloads. - Utilize the
filters
field to dynamically build UI filter options for product listings related to the manufacturer. - Leverage SEO fields (
seoTitle
,seoDescription
,seoKeywords
) to enhance search engine visibility when rendering manufacturer pages. - When querying nested product data, always check
pageInfo.hasNextPage
to implement infinite scrolling or pagination controls.
Notes
- All fields are optional and may return
null
if the data is not available. - The
image
field returns a URL string pointing to the manufacturer’s image. - Filtering and sorting on the
products
connection depend on the capabilities of the underlyingProductConnection
type. - The API currently requires no authentication, but this may change in future versions. Plan your integration accordingly.
- Avoid requesting large numbers of products in a single query to maintain performance and reduce server load.
- The
allProductsCount
field provides a quick way to display the total number of products without fetching the entire product list.
Last updated on