Read will read a bug from a repository
(repo repository.ClockedRepo, id entity.Id)
| 60 | |
| 61 | // Read will read a bug from a repository |
| 62 | func Read(repo repository.ClockedRepo, id entity.Id) (*Bug, error) { |
| 63 | return ReadWithResolver(repo, simpleResolvers(repo), id) |
| 64 | } |
| 65 | |
| 66 | // ReadWithResolver will read a bug from its Id, with custom resolvers |
| 67 | func ReadWithResolver(repo repository.ClockedRepo, resolvers entity.Resolvers, id entity.Id) (*Bug, error) { |