# Save data to mongodb through code

**URL:** <https://forum.elixirforum.com/t/save-data-to-mongodb-through-code/13653>\
**Category:** Questions\
**Tags:** ecto, mongodb\
**Created:** [April 13, 2018, 8:51am UTC](https://forum.elixirforum.com/t/save-data-to-mongodb-through-code/13653 "2018-04-13T08:51:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kokolegorille](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kokolegorille/32/4784_2.png) [@kokolegorille](https://forum.elixirforum.com/u/kokolegorille)\
**Post date:** [April 13, 2018, 9:23am UTC](https://forum.elixirforum.com/t/save-data-to-mongodb-through-code/13653/4 "2018-04-13T09:23:51Z")

</div>

If it is just to create some user, I would use the seed file instead. Still I don’t see when You expect this code to run.

---

_[View the full topic](https://forum.elixirforum.com/t/save-data-to-mongodb-through-code/13653)._
