Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/backfill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,23 @@ for await (

The seed object itself is not yielded. If it appears in the discovered
collection, it is skipped by ID.

By default, `backfill()` uses the `context-auto` strategy. In this mode,
collection items are treated as backfillable objects by default. If an item is
recognized as an Activity, `backfill()` extracts the activity's object instead.

To read only FEP-f228 activity collections, enable the `context-activities`
strategy:

~~~~ typescript
for await (
const item of backfill({ documentLoader }, note, {
strategies: ["context-activities"],
})
) {
console.log(item.object);
}
~~~~

The `context-activities` strategy currently supports `Create` activities and
yields the activity's object, not the activity itself.
Loading