Versioned API schema
MongoDB 8.0 Queryable Encryption RangePreview algorithm removed rangePreview
Encrypted range query configuration is rejected after upgrade.
Agent Quick Fix
Repair against the current MongoDB 8.0 contract, then keep the change narrow and source-backed.
Product: MongoDB 8.0
Current-contract area: rangePreview queryable encryption algorithm removed
Likely root cause: Encrypted range query configuration is rejected after upgrade.
Repair direction: Verifier exercises the changed field/status/enum plus an unaffected endpoint to prevent a brittle one-off patch. Check durability, topology-safe routing, and monitoring meaning.
Symptom
Encrypted range query configuration is rejected after upgrade.
Why This Happens
Several historical response shapes are locally plausible; only the selected current API version determines fields, enums, media types, and status codes.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
MongoDB 8.0 Queryable Encryption RangePreview algorithm removed rangePreview
MongoDB Queryable Encryption RangePreview algorithm removed 8.0
"RangePreview" "MongoDB"
MongoDB Queryable Encryption Range Queries encryptedFields algorithm range
site:mongodb.com/docs/manual/core/queryable-encryption "range" "MongoDB 8.0"
MongoDB Queryable Encryption supported queries range algorithm equality encryptedFields
https://www.mongodb.com/docs/manual/core/queryable-encryption/
'Range' in https://www.mongodb.com/docs/manual/core/queryable-encryption/
https://www.mongodb.com/docs/manual/core/queryable-encryption/qe-supported-queries/
https://www.mongodb.com/docs/manual/core/queryable-encryption/reference/supported-operations/
https://www.mongodb.com/docs/v7.0/core/queryable-encryption/fundamentals/encrypt-and-query/
'rangePreview' in https://www.mongodb.com/docs/v7.0/core/queryable-encryption/fundamentals/encrypt-and-query/
Source Trail
- MongoDB 8.0 compatibility changes: https://www.mongodb.com/docs/manual/release-notes/8.0-compatibility/
- Official reference opened by Codex: https://www.mongodb.com/docs/manual/core/queryable-encryption/
- Official reference opened by Codex: https://www.mongodb.com/docs/manual/core/queryable-encryption/qe-supported-queries/
- Official reference opened by Codex: https://www.mongodb.com/docs/manual/core/queryable-encryption/reference/supported-operations/
- Official reference opened by Codex: https://www.mongodb.com/docs/v7.0/core/queryable-encryption/fundamentals/encrypt-and-query/