ColumnIndexOptions.nullsFirst property

true sorts nulls first, false sorts them last, and leaving it out follows Postgres.

Signature:

nullsFirst: boolean;

Remarks

Postgres's own default depends on the direction: nulls last for ASC, first for DESC. Set it only to match an ORDER BY that asks for the other one.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.