Skip to main content
The Twitter plugin syncs data locally. Use corsair.twitter.db.<entity>.search({ data, limit?, offset? }) with the filters listed per entity.

Tweets

Path: twitter.db.tweets.search
const rows = await corsair.twitter.db.tweets.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
textstringequals, contains, startsWith, endsWith, in
authorIdstringequals, contains, startsWith, endsWith, in
createdAtstringequals, contains, startsWith, endsWith, in
conversationIdstringequals, contains, startsWith, endsWith, in
inReplyToUserIdstringequals, contains, startsWith, endsWith, in
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.