-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update development documentation for v0.8
- Loading branch information
Showing
34 changed files
with
512 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...tion/docs/develop/02-extensions/04-entries/trigger/custom_triggering_action.mdx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,19 @@ | ||
import CodeSnippet from "@site/src/components/CodeSnippet"; | ||
|
||
# Query Entries | ||
|
||
Sometimes you need to find an entry by any of it's fields or by type. This can be done with the `Query` class. | ||
|
||
If you need to find all entries of a specific type: | ||
```kotlin | ||
val entries = Query.find<MyEntry>() | ||
``` | ||
|
||
Sometimes you need it by a specific criteria: | ||
```kotlin | ||
val entries = Query.findWhere<MyEntry> { | ||
it.someField == "some value" | ||
} | ||
``` | ||
|
||
You can also find a single entry: | ||
```kotlin | ||
val entry = Query.findFirstWhere<MyEntry> { | ||
it.someField == "some value" | ||
} | ||
``` | ||
<CodeSnippet tag="query_multiple" json={require("../snippets.json")} /> | ||
|
||
Sometimes you need it by a specific filter: | ||
<CodeSnippet tag="query_multiple_with_filter" json={require("../snippets.json")} /> | ||
|
||
|
||
Sometimes you need to find an entry by it's id: | ||
```kotlin | ||
val entry = Query.findById<MyEntry>(id) | ||
``` | ||
<CodeSnippet tag="query_by_id" json={require("../snippets.json")} /> | ||
|
||
Other times you need to find entries by their page: | ||
```kotlin | ||
val entries = Query.findWhereFromPage<MyEntry>(pageId) { | ||
it.someField == "some value" | ||
} | ||
``` | ||
<CodeSnippet tag="query_from_page" json={require("../snippets.json")} /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.