Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas Search
Created by Guest
Created on Jan 26, 2024

Atlas Search aggregation pipeline TypeScript type definitions

It would be so much easier to write aggregation pipelines if we had type checking and type hinting. At this moment we can pass any JSON there. There is no driver or library that would check if it's correct or that would type check the input. I'm attaching some screenshots that show how it could work.
  • Guest
    Aug 28, 2024
    I have also been wanting this for a while now. I published a npm package to provide type bindings until this is fully supported by the native driver https://www.npmjs.com/package/mongodb-aggregation-dts
  • Guest
    Jan 29, 2024
    Hey Jakub, Thanks for the suggestion. I've opened https://jira.mongodb.org/browse/NODE-5863 for our team to review this in greater detail. Alex