# How about rewrite mongodb module with js?

**URL:** <https://forum.ansible.com/t/how-about-rewrite-mongodb-module-with-js/14299>\
**Category:** Ansible Developer\
**Created:** [January 9, 2014, 3:11am UTC](https://forum.ansible.com/t/how-about-rewrite-mongodb-module-with-js/14299 "2014-01-09T03:11:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Wang](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Aaron\_Wang](https://forum.ansible.com/u/Aaron_Wang)\
**Post date:** [January 9, 2014, 3:11am UTC](https://forum.ansible.com/t/how-about-rewrite-mongodb-module-with-js/14299/1 "2014-01-09T03:11:33Z")

</div>

Now, there is only one mongodb related module: mongodb\_user, and it requires pymongo. When I check [https://github.com/ansible/ansible-examples/tree/master/mongodb](https://github.com/ansible/ansible-examples/tree/master/mongodb), found it use js to initialize replset and shard, so this idea came up to me: since `mongo` shell is based on V8 and can execute js files(this is also how mongodb administrator do their maintenance work usually), how about just use js do the actual work(much easier, not extra requirement) in mogodb modules and wrap it up with python? Will this be welcomed to core if I contribute it?
