-
I have been playing around with extensions and prepare_request trying to get the fields from the queries, mutations, and subscriptions but I only managed to get them as a string, parse that string into something more useful, then checking if the resolver needs to be secured or not, and depending on that I verify the user token. The issue here, for me, is to parse the query string. It's nasty! I wonder if someone has already created an auth extension or can somebody help me achieve this in a more efficient way without the need to parse the query string I get from the prepare_request hook. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think Line 67 in e2e35ce |
Beta Was this translation helpful? Give feedback.
I think
FieldGuard
can help youasync-graphql/tests/guard.rs
Line 67 in e2e35ce