Built-in method to compare semantic versions in queries?

Hi,
I’m building a node.js application where I need to query documents based on semantic versions (e.g., 3.1.1); specifically, I need to retrieve documents where the semantic version is gte to a specific version provided at runtime.

I was wondering if MongoDB has any built-in methods or operators specifically designed for comparing semantic versions.

Thanks!