File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src/Domain/Value/QueryParameter Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -311,16 +311,16 @@ new OrFilter(
311
311
312
312
#### Filtering by native date fields
313
313
314
- The Storyblok API allows filtering by publish or updated dates.
314
+ The Storyblok API allows filtering by published or updated dates.
315
315
Those fields could not be filtered by ` gt_date ` or ` lt_date ` operations and have dedicated parameters in the request.
316
316
317
317
Supported date parameters are:
318
- * ` published_at_gt `
319
- * ` published_at_lt `
320
- * ` first_published_at_gt `
321
- * ` first_published_at_lt `
322
- * ` updated_at_gt `
323
- * ` updated_at_lt `
318
+ * ` published_at_gt `
319
+ * ` published_at_lt `
320
+ * ` first_published_at_gt `
321
+ * ` first_published_at_lt `
322
+ * ` updated_at_gt `
323
+ * ` updated_at_lt `
324
324
325
325
``` php
326
326
use Storyblok\Api\StoriesApi;
Original file line number Diff line number Diff line change 21
21
22
22
public function __construct (\DateTimeInterface $ publishedAt , Operator $ operator )
23
23
{
24
- $ name = match ($ operator-> value ) {
25
- ' lt ' => self ::FIRST_PUBLISHED_AT_LT ,
24
+ $ name = match ($ operator ) {
25
+ Operator::LessThan => self ::FIRST_PUBLISHED_AT_LT ,
26
26
default => self ::FIRST_PUBLISHED_AT_GT ,
27
27
};
28
28
You can’t perform that action at this time.
0 commit comments