Open
Description
Hi,
We have a MongoDB dependency in the controller. You can see here: https://github.com/amitshekhariitbhu/go-backend-clean-architecture/blob/main/api/controller/task_controller.go#L8
Maybe we should consider move the code bellow to other layer:
task.ID = primitive.NewObjectID()
task.UserID, err = primitive.ObjectIDFromHex(userID)
What's your thoughts?
Metadata
Assignees
Labels
No labels