SERVER-2212 introduced the maxTimeMS option for commands and queries.
AFAIK, the option is only discussed in Terminate Running Operations. It would be helpful if the option appeared alongside other command options. For instance, it does show up in the find command docs, but is absent from aggregate.
We should check with the server team for a list of all commands where a maxTimeMS option is supported. As shown by
SERVER-27711, support for this option is easy to overlook.