I'm wondering what would be a nice solution to filter GraphQL queries by the current timestamp, e.g:
query {
appointments(createdAt: today) { }
}
or
query {
appointments(createdAt_gte: now) { }
}
Is it recommended to create my own resolver functions here? How would they look like, when e.g. graph.cool is used as a backend?
I don't want to rely on the correct time of the client but use the server time instead.