async-graphql / examples

217 stars 54 forks source link

How to retrieve the data from `poem::Reqest::set_data` #88

Closed amikai closed 2 months ago

amikai commented 2 months ago

In my use case, I set the identity in the poem auth middleware using poem::Reqest::set_data. I want to retrieve it in a resolver node in async_graphql to check it has permission to access this node. How do I achieve that?

amikai commented 2 months ago

I open the issue to the wrong place. close it.