Filter rule by date now

Hey,

Is it possible to have a role filter by current datetime?

Something like:

{
  "expiresAt": {
    "lte": "now"
  }
}

Hey @gahabeen - this would have to be passed in as an argument to the query rather than be an interpreted value.

Hmm, so I can’t actually restrict theaccess to a ressource based on expiresAt datetime value against current time via rules? And I can’t really do that with triggers too, right? :thinking:

Can you maybe explain what you’re trying to accomplish? I’m sure there is a way but just want to make sure we are thinking about the same problem :slight_smile: