Skip to content

Kirby 4.1.0

$query->resolve()

Returns the query result if anything can be found, otherwise returns null

$query->resolve(object|array $data = [ ]): mixed|null

Parameters

Name Type Default
$data object|array [ ]

Return type

mixed|null

Exceptions

Type Description
Kirby\Exception\BadMethodCallException If an invalid method is accessed by the query

Parent class

Kirby\Query\Query