getMongoBsonMaxKey

Returns a BSON MaxKey value. MaxKey compares higher than every other BSON value, so a field set to it always sorts last.

getMongoBsonMaxKey() → returns any

This function requires Adobe ColdFusion 2021 and up.  Not supported on Lucee, etc.

Compatibility

ColdFusion:

Version 2021+ Requires the mongodb package

Links more information about getMongoBsonMaxKey

Examples
Sample code invoking the getMongoBsonMaxKey function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub