From 10ca58c5792d4a6b7b15d5aa39498d129aa39fba Mon Sep 17 00:00:00 2001 From: Mihail Cornescu Date: Tue, 25 Jan 2022 21:05:39 +0200 Subject: [PATCH] Add IgnoreCase to repository queries documentation. Update reference documentaion and add missing IgnoreCase keyword. Closes: #3916 Original Pull Request: #3950 --- src/main/asciidoc/reference/mongo-repositories.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/asciidoc/reference/mongo-repositories.adoc b/src/main/asciidoc/reference/mongo-repositories.adoc index 328a547b5..4d69ee95d 100644 --- a/src/main/asciidoc/reference/mongo-repositories.adoc +++ b/src/main/asciidoc/reference/mongo-repositories.adoc @@ -281,6 +281,10 @@ lower / upper bounds (`$gt` / `$gte` & `$lt` / `$lte`) according to `Range` | `Exists` | `findByLocationExists(boolean exists)` | `{"location" : {"$exists" : exists }}` + +| `IgnoreCase` +| `findByUsernameIgnoreCase(String username)` +| `{"username" : {"$regex" : "^username$", "$options" : "i" }}` |=== NOTE: If the property criterion compares a document, the order of the fields and exact equality in the document matters.