$query->resolve()
Returns the query result if anything can be found, otherwise returns null
$query->resolve(object|array $data = [ ]): mixed
Parameters
| Name | Type | Default |
|---|---|---|
| $data | objectorarray |
[ ]
|
Return type
mixed
This method modifies the existing $query object it is applied to and returns it again.
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\BadMethodCallException |
If an invalid method is accessed by the query |
Kirby\Exception\InvalidArgumentException |
If an invalid query runner is set in the config option |