# Dynamically defining schema in function with schema macro

**URL:** <https://forum.elixirforum.com/t/dynamically-defining-schema-in-function-with-schema-macro/46813>\
**Category:** Questions\
**Tags:** ecto\
**Created:** [March 25, 2022, 8:01pm UTC](https://forum.elixirforum.com/t/dynamically-defining-schema-in-function-with-schema-macro/46813 "2022-03-25T20:01:48Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![dimitarvp](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/32/38664_2.png) [@dimitarvp](https://forum.elixirforum.com/u/dimitarvp)\
**Post date:** [March 26, 2022, 2:36am UTC](https://forum.elixirforum.com/t/dynamically-defining-schema-in-function-with-schema-macro/46813/14 "2022-03-26T02:36:15Z")

</div>

Nope, now it doesn’t make sense because I misunderstood at the start.

Seems like you’ll have to use the schemaless Ecto API. Have you checked it out?

---

_[View the full topic](https://forum.elixirforum.com/t/dynamically-defining-schema-in-function-with-schema-macro/46813)._
