corsair.hackernews.db.<entity>.search({ data, limit?, offset? }) with the filters listed per entity.
New to Corsair? See database operations, data synchronization, and multi-tenancy.
Items
Path:hackernews.db.items.search
Searchable filters
| Field | Type | Operators |
|---|---|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | number | equals, gt, gte, lt, lte, in |
by | string | equals, contains, startsWith, endsWith, in |
title | string | equals, contains, startsWith, endsWith, in |
url | string | equals, contains, startsWith, endsWith, in |
text | string | equals, contains, startsWith, endsWith, in |
score | number | equals, gt, gte, lt, lte, in |
time | number | equals, gt, gte, lt, lte, in |
descendants | number | equals, gt, gte, lt, lte, in |
parent | number | equals, gt, gte, lt, lte, in |
poll | number | equals, gt, gte, lt, lte, in |
dead | boolean | equals |
deleted | boolean | equals |
createdAt | date | equals, before, after, between |
.search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.
Users
Path:hackernews.db.users.search
Searchable filters
| Field | Type | Operators |
|---|---|---|
entity_id | string | equals, contains, startsWith, endsWith, in |
id | string | equals, contains, startsWith, endsWith, in |
karma | number | equals, gt, gte, lt, lte, in |
about | string | equals, contains, startsWith, endsWith, in |
created | number | equals, gt, gte, lt, lte, in |
createdAt | date | equals, before, after, between |
.search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.