Beta
Optional
Alpha
Controls whether null/undefined values appear first or last in the sort order.
Defaults match PostgreSQL behavior:
'desc'
'asc'
Only specify this to override the default (e.g. nulls: 'last' with direction: 'desc').
nulls: 'last'
direction: 'desc'
Overriding the default may have performance implications for document types with hundreds of documents.
Controls whether null/undefined values appear first or last in the sort order.
Defaults match PostgreSQL behavior:
'desc'direction → nulls first'asc'direction → nulls lastOnly specify this to override the default (e.g.
nulls: 'last'withdirection: 'desc').❗This is an experimental feature.
Overriding the default may have performance implications for document types with hundreds of documents.