Skip to content

How to perform CRUD on new modules/service? #10824

Closed Answered by olivermrbl
aaa3334 asked this question in Q&A
Discussion options

You must be logged in to vote

All autogenerated methods from the MedusaService follow the convention of: service.[method][Pluralized version of the model]. For example, for your data model Brand, the methods are:

async createBrands(...)
async listBrands(...)
async updateBrands(...)
// etc.

Let me know if this helps :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by olivermrbl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants