We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
update()
1 parent 2e8611f commit ddb8049Copy full SHA for ddb8049
Documentation/Index.md
@@ -1521,10 +1521,13 @@ There are two other parameters also available to this method:
1521
Queries have a method to allow updating an Encodable type.
1522
1523
```swift
1524
-try db.run(users.update(user))
+try db.run(users.filter(id == userId).update(user))
1525
1526
```
1527
1528
+> ⚠ Unless filtered, using the update method on an instance of a Codable
1529
+> type updates all table rows.
1530
+
1531
There are two other parameters also available to this method:
1532
1533
- `userInfo` is a dictionary that is passed to the encoder and made available
0 commit comments