Timestamp from Postgres returns date object despite schema using string mode?

Hello team, I'm confused if this is a bug because I haven't seen any other threads about it.

When I define my timestamp columns like this:
  effectiveDate: timestamp("effective_date", { withTimezone: true, mode: 'string' }).notNull(),


How come the return type of the column when I fetch data says string, however when I log the value or use it anywhere, it's actually a JS date object?

Is this a known issue?
Was this page helpful?