You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Elasticsearch price range inputs are incompatible with BigIntMoneyStrategy #40
The Elasticsearch plugin defines its price filters using GraphQL Int:
inputPriceRangeInput {
min: Int!max: Int!
}
GraphQL Int is limited to signed 32-bit values, with a maximum value of 2,147,483,647.
Vendure supports BigIntMoneyStrategy for catalogs whose monetary values exceed this limit. These prices can be stored by Vendure, exposed through the Money scalar, and indexed by Elasticsearch, but they cannot be passed to priceRange or priceRangeWithTax.
PriceRangeBucket.to is also declared as Int!, so price bucket responses may have the same limitation.
Reproduction
Configure Vendure to use a whole-unit BigIntMoneyStrategy:
If changing PriceRangeInput would be considered a breaking schema change, an alternative would be to introduce a new money-based range input and deprecate the Int-based fields.
Activity