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.
3
votes
Jakub Barchiewicz
shared this idea
-
Vijayakrishna commented
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 -
AdminAlex (Admin, MongoDB) commented
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