Replies: 2 comments
-
I absolutely agree, I also have to do this manual execution that feels almost like a hack, totally skipping the intended API. But I do have an idea! If the official code in async-graphql/integrations/axum/src/query.rs Lines 39 to 46 in 3046ae7 Wouldn't return an HTTP response but a Any ideas? |
Beta Was this translation helpful? Give feedback.
-
In my case, I need to access the errors that are created in the |
Beta Was this translation helpful? Give feedback.
-
The official example recommends something like this:
examples/axum/token-from-header/src/main.rs
But you lose all the nice features/logic you would get with the
async_graphql_axum::GraphQL
service:async-graphql/integrations/axum/src/query.rs
Lines 54 to 88 in 3046ae7
Is there really no better way of accessing the headers with the axum service without copy-pasting all of the code above?
Beta Was this translation helpful? Give feedback.
All reactions