Const
Annotation holding a reader's position in a feed — the cursor it has consumed up to.
An annotation rather than a @meta foreign key: a key identifies the same entity in another system, which a checkpoint is not.
@meta
const cursor = Annotation.get(reader, Feed.CursorAnnotation).pipe(Option.getOrElse(() => Feed.START));Obj.update(reader, (reader) => Annotation.set(reader, Feed.CursorAnnotation, Feed.getCursor(item)!)); Copy
const cursor = Annotation.get(reader, Feed.CursorAnnotation).pipe(Option.getOrElse(() => Feed.START));Obj.update(reader, (reader) => Annotation.set(reader, Feed.CursorAnnotation, Feed.getCursor(item)!));
Annotation holding a reader's position in a feed — the cursor it has consumed up to.
An annotation rather than a
@metaforeign key: a key identifies the same entity in another system, which a checkpoint is not.