Graphql-engine: Permissions: Is it possible to compare a field with current time ?

Created on 26 Oct 2020  路  3Comments  路  Source: hasura/graphql-engine

Is it possible to make a permissions like that ?

image

And to add some calculations to it ?
image

ideas

Most helpful comment

I did seem to think there was an issue for adding custom (IMMUTABLE/STABLE) functions in authz check but I can't seem to find it. But yes, it sounds like a powerful feature. I will rename the issue if I can't find an existing issue for this.

All 3 comments

Hmm, as an idea, would be nice to have a check against a postgres function

@webdeb Yeah it might be a better than now() + 60 * 1000.

I did seem to think there was an issue for adding custom (IMMUTABLE/STABLE) functions in authz check but I can't seem to find it. But yes, it sounds like a powerful feature. I will rename the issue if I can't find an existing issue for this.

Was this page helpful?
0 / 5 - 0 ratings