Get Global Story Targets
Last updated
Last updated
The getGlobalStoryTargets()
function retrieves all active story targets with non-expired stories. The resulting LiveCollection provides real-time updates on story creation per target. 'Unsynced story targets'—those with stories in 'syncing' or 'failed' states—are prioritized, followed by 'Synced story targets' with successful creations, sorted by most recent first.
Here's an explanation of the function parameter:
queryOption
: Represents how the collection should be filtered and sorted.
SEEN - A LiveCollection that contains only story targets that don't have unseen stories sorted by recent creation first.
UNSEEN - A LiveCollection that contains only story targets that have unseen stories sorted by recent creation first.
ALL - A LiveCollection that contains all active story targets sorted by recent creation first.
SMART - Concatenation of results from UNSEEN followed by SEEN option in a single LiveCollection.
SEEN
Only seen
Recent creation first
Excluded
UNSEEN
Only unseen
1st: Unsynced storyTarget first
2nd: Recent creation first
Included
ALL
-
1st: Unsynced storyTarget first
2nd: Recent creation first
Included
SMART
-
Concatenation of [UNSEEN] and [SEEN]
Included