Skip to content
Discussion options

You must be logged in to vote

Hey @ankushranka

Current Scenario (using raw SQL )

As you can see here - https://hasura.io/docs/latest/event-triggers/clean-up/, we have defined options on how to prune event trigger data via running SQL commands.

Possible solution via graphql API

For the request you are making, we can achieve that by writing custom SQL functions and exposing them over GraphQL API. Hasura GraphQL engine lets you expose certain types of custom functions as top level fields in the GraphQL API to allow querying them with either queries or subscriptions, or for VOLATILE functions as mutations. Check the docs here - https://hasura.io/docs/latest/schema/postgres/custom-functions/

1. Create SQL function

For this…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ankushranka
Comment options

@meetzaveri
Comment options

Answer selected by ankushranka
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants