Hi everyone, could anyone help me? I have an expir...
# prisma-whats-new
j
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
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
With a Custom Query?
a
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
@agartha Thanks for your help, I will have to do this on the client side
😎 1