added commerce's products and variations queries to graphql
This commit is contained in:
@@ -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
|
||||
|
@@ -37,3 +37,19 @@ extend type Query {
|
||||
extend type Query {
|
||||
company(id: Int!): Company
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
product(id: Int!): Product
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
products(ids: [Int]): [Product]
|
||||
}
|
||||
|
||||
# extend type Query {
|
||||
# variation(id: Int!): Variation
|
||||
# }
|
||||
#
|
||||
# extend type Query {
|
||||
# variations(id: [Int]): Variation
|
||||
# }
|
||||
|
Reference in New Issue
Block a user