|
1
|
export const updatedSchema = ` |
|
2
|
type Product @Listeners(values: ["product.created", "product.updated", "product.deleted"]) { |
|
3
|
id: ID |
|
4
|
title: String |
|
5
|
handle: String |
|
6
|
deep: InternalNested |
|
7
|
variants: [ProductVariant] |
|
8
|
} |
|
9
|
|
|
10
|
type InternalNested { |
|
11
|
a: Int |
|
12
|
obj: InternalObject |
|
13
|
} |
|
14
|
|
|
15
|
type InternalObject { |
|
16
|
b: Int |
|
17
|
} |
|
18
|
|
|
19
|
type ProductVariant @Listeners(values: ["variant.created", "variant.updated", "variant.deleted"]) { |
|
20
|
id: ID |
|
21
|
product_id: String |
|
22
|
sku: String |
|
23
|
prices: [Price] |
|
24
|
} |
|
25
|
|
|
26
|
type Price @Listeners(values: ["price.created", "price.updated", "price.deleted"]) { |
|
27
|
amount: Float |
|
28
|
currency_code: String |
|
29
|
} |
|
30
|
` |