-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
None
-
Query Optimization
-
Fully Compatible
-
(copied to CRM)
-
None
-
None
-
None
-
None
-
None
-
None
-
None
With this schema:
{
type: "object",
properties: {
foo: {
encrypt: {
algorithm: "AEAD_AES_256_CBC_HMAC_SHA_512-Random",
keyId: "/key",
bsonType: "int"
}
}
}
}
This update should pass:
{q: {}, u: {foo: NumberInt(6), key: "hello"}}
Since all the information necessary for encrypting the literal is included in the replacement-style update (as it would in an insert).
But instead it fails with code 51093 and error message "A non-static (JSONPointer) keyId is not supported."