Skip to content

Commit f7d8a21

Browse files
committed
docs(query-builder): updated distinct documentation
1 parent dcf3730 commit f7d8a21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/calliope/query-building.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,13 @@ User.unless(() => false, model => model.whereKey(1));
263263

264264
#### distinct
265265

266-
The `distinct` method adds a distinct constraint to the next request indicating that only distinct records are expected.
266+
The `distinct` method adds a distinct parameter for the request where the returned rows are expected to be distinct by the given columns.
267267

268268
```js
269269
import User from '@Models/User';
270270

271-
User.distinct();
271+
User.distinct('column1');
272+
User.distinct(['column1', 'column2']);
272273
```
273274

274275
#### select

0 commit comments

Comments
 (0)