Product
Now the Product
model, which has relations with Category
and Order
.
Product
and Category
have a many-to-many relation, so we'll have in Product
And in Category
Now, generate and run the migration
Create the products resource
And perform the steps to finish its assembly
Exclude the entities folder
In the controller, use the
IdDto
whereverid
is being usedRemove the number conversion operator (
+
) below each occurrenceUse
PaginationDto
in thefindAll()
method (and also in the service)Default page size - 20
Commit - Creating product model
Last updated