?
db.fromNow
A timestamp a given duration after now.
db.fromNow(durationMs) → number
Returns the timestamp a given duration after now (now plus the span). Use it for expiries and deadlines: set a column to db.fromNow(db.hours(24)), then filter on it later.
Parameters
durationMs
number
RequiredA span in milliseconds, usually from the duration helpers.
An expiry
const expiresAt = db.fromNow(db.hours(24));