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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By packages/backfill/src/backfill.ts:174, the context-auto strategy processes only Create, like the context-activities strategy. But this doc says "Activity", which makes it seem like the strategy processes all kinds of Activities.


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