diff --git a/README.md b/README.md index 6c9822cb0..8e845f992 100644 --- a/README.md +++ b/README.md @@ -1975,6 +1975,15 @@ Feed [requests](#requests) with SQL expressions built from your Swift code: ``` > :point_up: **Note**: SQLite string comparison, by default, is case-sensitive and not Unicode-aware. See [string comparison](#string-comparison) if you need more control. + + To check inclusion in a sub query, calls the `contains` method on another request: + + ```swift + // SELECT * FROM "events" + // WHERE ("userId" IN (SELECT "id" FROM "persons" WHERE "verified")) + let verifiedUsers = User.filter(Col.verified) + Event.filter(verifiedPersonIds.select(Col.id).contains(Col.userId)) + ``` #### SQL Functions