Skip to content

Commit 31f011c

Browse files
committed
add docs for deleting rows
1 parent 044e6b6 commit 31f011c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

doc/repositories.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ the name of a user while keeping the other fields untouched like this:
3737
await db.users.updateOne(UserUpdateRequest(id: 'abc', name: 'Tom'));
3838
```
3939

40+
#### Deleting Rows
41+
42+
You can delete rows with the `deleteOne(Key id)` and `deleteMany(List<Key> ids)` methods. The `Key` type will be the type of the primary key column of your model, e.g. `String` if you define a `@PrimaryKey() String get id;`.
43+
4044
#### QueryParams
4145

4246
Query methods that return a list of models will accept a `QueryParams` argument

0 commit comments

Comments
 (0)