I was wondering if there exists a command similar to SELECT greatest as described in https://mariadb.com/kb/en/greatest/ to use in Spring Data MongoDB.