Schema Documentation

LineItem

Description

a line item object

Fields
Field NameDescription
databaseId - Int The ID of the order item in the database
id - ID! The ID of the order item in the database
itemDownloads - [ProductDownload] Line item's taxes
metaData - [MetaData] Object meta data
Arguments
key - String

Retrieve meta by key

keysIn - [String]

Retrieve multiple metas by key

multiple - Boolean

Retrieve meta with matching keys

orderId - Int The Id of the order the order item belongs to.
product - LineItemToProductConnectionEdge Connection between the LineItem type and the Product type
Arguments
where - LineItemToProductConnectionWhereArgs

Arguments for filtering the connection

productId - Int Line item's product ID
quantity - Int Line item's product quantity
subtotal - String Line item's subtotal
subtotalTax - String Line item's subtotal tax
taxClass - TaxClassEnum Line item's tax class
taxStatus - TaxStatusEnum Line item's taxes
taxes - [OrderItemTax] Line item's taxes
total - String Line item's total
totalTax - String Line item's total tax
variation - LineItemToProductVariationConnectionEdge Connection between the LineItem type and the ProductVariation type
variationId - Int Line item's product variation ID
Example
{"databaseId":987,"id":4,"itemDownloads":[ProductDownload],"metaData":[MetaData],"orderId":987,"product":LineItemToProductConnectionEdge,"productId":987,"quantity":987,"subtotal":"xyz789","subtotalTax":"xyz789","taxClass":"INHERIT_CART","taxStatus":"NONE","taxes":[OrderItemTax],"total":"xyz789","totalTax":"xyz789","variation":LineItemToProductVariationConnectionEdge,"variationId":987}