Skip to content

Commit 04627e7

Browse files
committed
docs(protect): clarify bare number restriction applies only to searchableJson
Qualify the "wrong" code comment to note that bare numbers work for orderAndRange queries, per PR #283 review feedback.
1 parent 1d50893 commit 04627e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/searchable-encryption-postgres.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const tagsTerm = await protectClient.encryptQuery(['admin', 'user'], {
203203
> For `orderAndRange` queries, bare numbers are supported directly.
204204
>
205205
> ```typescript
206-
> // Wrong - will fail
206+
> // Wrong for searchableJson - will fail (works for orderAndRange)
207207
> await protectClient.encryptQuery(42, { column: documents.metadata, table: documents })
208208
>
209209
> // Correct - wrap in an object

0 commit comments

Comments
 (0)