Definition
Array/Object Structure
string
required
string,['=', '<', '<=', '>', '>=']
required
int
required
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Filter::field('options->languages', [FilterType::JSON_LENGTH]);
$filter = [
'type' => '$jsonLength',
'target' => 'options->languages',
'operator' => '>=',
'value' => 2,
];
$sql = User::filter([$filter])->toRawSql();
select * from "users"
where json_length("users"."options", '$."languages"') >= 2
