ConstOptionaloptions: Feed.QueryOptionsOptionaloptions: Feed.QueryOptionsconst result = yield* Feed.query(feed, Filter.type(Person));
result.subscribe(...);
const objects = yield* Feed.query(feed, Filter.type(Person)).run;
const object = yield* Feed.query(feed, Filter.type(Person)).first;
// Data-last (curried) form composes with `pipe`:
const objects = yield* pipe(feed, Feed.query(Filter.type(Person))).run;
// Resume after a cursor, reading a bounded page of what is new:
const objects = yield* Feed.query(feed, Query.select(Filter.feedCursor(cursor)).limit(10)).run;
Creates a reactive query over items in a feed.
Returns a QueryResult.QueryResultEffect: yielding it produces a subscribable
QueryResult, while its.run/.firstshorthands execute the query once. This mirrorsDatabase.queryso feed and database queries chain identically.Supports both data-first and data-last (curried) forms; the latter composes with
pipe.In non-Effect code, query a feed directly through the database with a feed scope:
db.query(Query.select(filter).from(Scope.feed(Feed.getFeedUri(feed)))).