@@ -124,16 +124,16 @@ may vary.
124124- :meth: `~django.db.models.query.QuerySet.alias `,
125125 :meth: `~django.db.models.query.QuerySet.annotate `,
126126 :meth: `~django.db.models.query.QuerySet.distinct `: Cannot group on field
127- '_id.value ' which is encrypted with the random algorithm or whose encryption
128- properties are not known until runtime.
127+ '<encrypted_field> ' which is encrypted with the random algorithm or whose
128+ encryption properties are not known until runtime.
129129- :meth: `~django.db.models.query.QuerySet.dates `,
130130 :meth: `~django.db.models.query.QuerySet.datetimes `: If the value type is a
131131 date, the type of the index must also be date (and vice versa).
132132- :meth: `~django.db.models.query.QuerySet.in_bulk `: Encrypted fields can't have
133133 unique constraints.
134-
135- # TODO: add details about joined queries after
136- https://github.com/mongodb/django-mongodb-backend/pull/443 is finalized .
134+ - Queries that join multiple collections and require the `` let `` operator. Such
135+ queries usually involve expressions or subqueries: Non-empty 'let' field is
136+ not allowed in the $lookup aggregation stage over an encrypted collection .
137137
138138There are also several ``QuerySet `` methods that aren't permitted on any models
139139(regardless of whether or not they have encrypted fields) that use a database
@@ -142,10 +142,8 @@ sample error message from the database.
142142
143143- :meth: `~django.db.models.query.QuerySet.update `: Multi-document updates are
144144 not allowed with Queryable Encryption.
145- - :meth: `~django.db.models.query.QuerySet.aggregate `,
146- :meth: `~django.db.models.query.QuerySet.count `: Aggregation stage
147- $internalFacetTeeConsumer is not allowed or supported with automatic
148- encryption.
145+ - :meth: `~django.db.models.query.QuerySet.aggregate `: Invalid reference to an
146+ encrypted field within aggregate expression.
149147- :meth: `~django.db.models.query.QuerySet.union `: Aggregation stage $unionWith
150148 is not allowed or supported with automatic encryption.
151149
0 commit comments