Skip to content

How would you handle service/domain relationship? #50

Discussion options

You must be logged in to vote

Hi @anthonycorbacho. Yes, I'd have a struct in the root that combines both the LocationRepository & the FollowerRepository. The only things I'd change about your implementation are: 1) rename fetchLocation() to FetchLocation() so it's exported, and 2) maybe find a different name for LocationFollower. I'm not sure what exactly though. It doesn't feel like a name I'd use to describe it IRL.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anthonycorbacho
Comment options

Answer selected by benbjohnson
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