Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/framework/command/index.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/framework/injector/index.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/framework/injector/reference.md

This file was deleted.

18 changes: 18 additions & 0 deletions docs/framework/orm/query-dsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,30 @@ This method orders the results by the given field and returns them in descending
Repo.get(User.class).orderBy("age", true) // All users starting with the oldest descending to the youngest
```

#### groupBy
This method groups the results by the given column name.
```java
Repo.get(User.class).groupBy("age") // Groups all users with the same age together.
```

#### limit
Limit the amount of entities returned.
```java
Repo.get(User.class).limit(3) // Only the first 3 users
```

#### offset
Shifts the entries by n, useful in combination with limit.
```java
Repo.get(User.class).offset(1337) // Starts at the 1337th User
```

#### limit & offset together
The functionality of limit and offset together.
```java
Repo.get(User.class).limit(1337, 100)
```

#### withDeleted
If [soft-deletes](/framework/orm/soft-deletes/) are enabled for the model, this will include soft-deleted entities into the query.
```java
Expand Down
5 changes: 0 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ nav:
- 'framework/httpserver/response-transformer.md'
- 'framework/httpserver/websocket.md'
- 'framework/httpserver/testing.md'
- Injector:
- 'framework/injector/index.md'
- 'framework/injector/reference.md'
- Validator:
- 'framework/validator/index.md'
- Command:
- 'framework/command/index.md'
- HTTP-Client:
- 'httpclient/index.md'
- 'httpclient/reference.md'
Expand Down