03/30/2022, 2:25 PM
Hi folks! We're using Hasura as graphql server. We're using webhook pattern [1] to authenticate/authorize the gql query/mutation. I'm looking for recommendation on how to "introspect" the gql query easily—so we can have less accidental complexity, i.e. directly inputting the params for
SpiceDB queries. Here, you could imagine that the webhook server talks to spicedb via grpc every time there's a query/mutation. YSK: Hasura forwards custom request headers as well as the gql operation name and the query and its variables themselves. Thanks! 1. https://hasura.io/docs/latest/graphql/core/auth/authentication/webhook/