4
0
forked from crowetic/commerce

Add original img to query

This commit is contained in:
Luis Alvarez
2020-10-08 16:18:06 -05:00
parent 7b012564b0
commit 268ef2f817
3 changed files with 113 additions and 6 deletions

View File

@@ -151,6 +151,51 @@ type BrandEdge {
cursor: String!
}
"""
Breadcrumb
"""
type Breadcrumb {
"""
Category id.
"""
entityId: Int!
"""
Name of the category.
"""
name: String!
}
"""
A connection to a list of items.
"""
type BreadcrumbConnection {
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""
A list of edges.
"""
edges: [BreadcrumbEdge]
}
"""
An edge in a connection.
"""
type BreadcrumbEdge {
"""
The item at the end of the edge.
"""
node: Breadcrumb!
"""
A cursor for use in pagination.
"""
cursor: String!
}
"""
Bulk pricing tier that sets a fixed price for the product or variant.
"""
@@ -299,6 +344,17 @@ type Category implements Node {
Category description.
"""
description: String!
"""
Category breadcrumbs.
"""
breadcrumbs(
depth: Int!
before: String
after: String
first: Int
last: Int
): BreadcrumbConnection!
products(
before: String
after: String
@@ -667,6 +723,11 @@ type Image {
"""
url(width: Int!, height: Int): String!
"""
Absolute path to original image using store CDN.
"""
urlOriginal: String!
"""
Text description of an image that can be used for SEO and/or accessibility purposes.
"""