Catalog/GraphQL

Catalog/GraphQL

Methods

(static) "CartItem.productTags"(product, args, context) → {Promise.<Array.<Object>>}

Returns the tags for a CartItem

Source:
Parameters:
Name Type Description
product Object

CartItem from parent resolver

args TagConnectionArgs

arguments sent by the client See default connection arguments

context Object

an object containing the per-request state

Returns:

Promise that resolves with array of Tag objects

Type
Promise.<Array.<Object>>

(static) "CatalogProduct.tagIds"(product) → {Array.<String>}

Returns the product tagIds prop to opaque IDs

Source:
Parameters:
Name Type Description
product Object

CatalogProduct response from parent resolver

Returns:

Array of tag IDs

Type
Array.<String>

(static) "CatalogProduct.tags"(product, args, context) → {Promise.<Array.<Object>>}

Returns the tags for a product

Source:
Parameters:
Name Type Description
product Object

CatalogProduct response from parent resolver

args TagConnectionArgs

arguments sent by the client See default connection arguments

context Object

an object containing the per-request state

Returns:

Promise that resolves with array of Tag objects

Type
Promise.<Array.<Object>>

(static) "OrderItem.productTags"(orderItem, args, context) → {Promise.<Array.<Object>>}

Returns the tags for an OrderItem

Source:
Parameters:
Name Type Description
orderItem Object

OrderItem from parent resolver

args TagConnectionArgs

arguments sent by the client See default connection arguments

context Object

an object containing the per-request state

Returns:

Promise that resolves with array of Tag objects

Type
Promise.<Array.<Object>>

(static) "Query.catalogItems"(_, args, context) → {Promise.<Object>}

Get a list of catalogItems

Source:
Parameters:
Name Type Description
_ Object

unused

args ConnectionArgs

an object of all arguments that were sent by the client

Properties
Name Type Description
shopIds Object

limit to catalog items for these shops

tagIds Object

limit to catalog items with these tags

context Object

an object containing the per-request state

Returns:

A CatalogItemConnection object

Type
Promise.<Object>