ckelley
06/16/2017, 3:33 AMPerson
type and a Reminder
type, where a Reminder has a notifyDate: DateTime!
field. I want to sort the Person
type in order of the oldest notifyDate that they have as a reminder, so that the people with the "most expired" reminders are at the top. Currently my solution is to have a field on the person with a DateTime that re-stores the oldest reminder's notifyDate
, and every time I run a create or update on a Reminder I re-calculate it. Unfortunately, on Graphcool this requires that I add another round-trip query. Any ideas on a better way to structure?nilan
06/16/2017, 9:18 AMReminder(mutation_in: [CREATED, UPDATED])
that recalculates the notifyDate
of the personckelley
06/16/2017, 4:07 PMnilan
06/16/2017, 5:08 PM