added commerce's products and variations queries to graphql

This commit is contained in:
2021-01-04 21:44:13 +01:00
parent dfe6a21021
commit 830f5a5909
3 changed files with 211 additions and 0 deletions

View File

@@ -72,6 +72,37 @@ type SearchResult {
reference: String
}
type Product {
id: Int!
uuid: String!
title: String
bundle: String
body: String
path: String
variations: [Variation]
}
type Variation {
id: Int!
uuid: String!
title: String
description: String
subscription_type: String
sku: String
price: Price
product_id: Int
# list_price
# billing_schedule
# license_expiration
# license_type
# field_multiple
}
type Price {
value: Int
currency: String
}
type Sample {
showroom: Showroom
location: String