#This is possible to create two models/migrations in one module?

11 messages · Page 1 of 1 (latest)

viral arrow
#

Yes it is, you can have as many models and migrations in your modules. You can also have as many services and repos as you want. Also, for reach models we auto generate a repo and service associated to each model that you can access from the main module service

warped ibex
#

Can you show me some example?

warped ibex
#

Next case, only I have that bug?

#

When i create new product category and when fetching products with query parameter category_id this problem occurs.

warped ibex
viral arrow
#

I believe carlos shared multiple examples in others conv right? I am on vacay 😅 was just jumping by

warped ibex
#

@tender marlin
I can't find these examples

warped ibex
#

Someone help me, ex. how to resolve service like this

#

and have access to staticPageCategory service

tender marlin
#

Medusa only register modules in the container, if you have underlying services of the same module you will have to expose them yourself.
The modules is like a facade for all the services composing the module.

#

But we auto generate the CRUD methods for the services you register in the module.
listPageCategories, createPageCategories, etc....