temporal.collections() as Sequence
This function returns all of the temporal collection names in the schema database.
var temporal = require("/MarkLogic/temporal.xqy"); temporal.collections() // Returns the names of all of the temporal collections.