FerretDB index fix for Meteor.js

Some Meteor.js users are exploring FerretDB as an open alternative to MongoDB. We ran into a small index issue, so we patched around it and released the fix as a Meteor package.
Sharing in case it helps others: github.com/tannerlab/meteorjs-ferretdb-index-fix
What is Meteor.js? A full-stack JavaScript framework for building real-time web and mobile applications with one codebase for client and server, live data updates, and rapid development.
What is FerretDB? An open-source database that acts as a drop-in replacement for MongoDB, providing compatibility with MongoDB drivers and queries while using PostgreSQL (or other SQL databases) underneath.