Hi everyone, could anyone help me? I have an expired_at field, and I want to send a value true when expired_at is greater than the date now, does anyone know how to do this?
a
agartha
09/11/2017, 5:28 PM
This cannot be done (yet), so you'll have to do it on the client. However, there are a number of Feature Requests for computed fields, custom resolvers, etc.
j
Jhony Reyes
09/11/2017, 5:43 PM
With a Custom Query?
a
agartha
09/11/2017, 6:14 PM
You're very limited in the kind of data you can return from a Custom Query. You can't return an array yet, for example. And you can't use nested Types. So it's really not suitable for this use-case
j
Jhony Reyes
09/11/2017, 6:31 PM
@agartha Thanks for your help, I will have to do this on the client side