Query by Type

Here we will show you how you can query documents by its content-type.

<?php
use Comfortable\Filter;

$type = 'news';
$results = $api->getDocuments()
  ->filter(
    (new Filter)
      ->addAnd('contentType', 'equal', $type, 'meta')
    )
    ->execute();

Last updated