**What** - Add index engine feature flag - apply it to the `store/products` end point as well as `admin/products` - Query builder various fixes - search capabilities on full data of every entities. The `q` search will be applied to all involved joined table for selection/where clauses Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
31 lines
643 B
TypeScript
31 lines
643 B
TypeScript
export const schema = `
|
|
type Product @Listeners(values: ["product.created", "product.updated", "product.deleted"]) {
|
|
id: String
|
|
title: String
|
|
created_at: DateTime
|
|
|
|
deep: InternalNested
|
|
variants: [ProductVariant]
|
|
}
|
|
|
|
type InternalNested {
|
|
a: Int
|
|
obj: InternalObject
|
|
}
|
|
|
|
type InternalObject {
|
|
b: Int
|
|
}
|
|
|
|
type ProductVariant @Listeners(values: ["variant.created", "variant.updated", "variant.deleted"]) {
|
|
id: String
|
|
product_id: String
|
|
sku: String
|
|
prices: [Price]
|
|
}
|
|
|
|
type Price @Listeners(values: ["price.created", "price.updated", "price.deleted"]) {
|
|
amount: Float
|
|
}
|
|
`
|