I have a CoreData entity
named Ticket
which represents the work done on a job. Every job has hours and I would like to get all of the hours done for companyX
. So for example:
If I have
Verizon: 8
Netflix: 8
AMEX: 8
Verizon: 8
How would I map over all the Verizon
jobs and get 16 hours
I can't think of how I would do this although I think I would have to edit the Ticket + CoreDataProperties
file.
Would I perform the mapping here
@FetchRequest(entity: Ticket.entity(), sortDescriptors: [])
or somewhere else?