Files
medusa-store/packages/modules/index/integration-tests/__fixtures__/schema.ts
Carlos R. L. Rodrigues f764b3a364 feat(index): $nin and $not operators (#13289)
* feat(index): add $not and $nin operators

* logical operator

* test

* test

* types

* logical

* schema ID

* types and $ilike fix

* index type
2025-08-28 11:56:17 +02:00

31 lines
635 B
TypeScript

export const schema = `
type Product @Listeners(values: ["product.created", "product.updated", "product.deleted"]) {
id: ID
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: ID
product_id: String
sku: String
prices: [Price]
}
type Price @Listeners(values: ["price.created", "price.updated", "price.deleted"]) {
amount: Float
}
`