Is it documented anywhere that $context is set to Auth::user() by default? #1192
-
|
I had trouble trying to find where $context was assigned to Auth::user() by default. Are there any docs, or should there be for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Hi, maybe here u can find some info about it #1126 |
Beta Was this translation helpful? Give feedback.
-
That's coming from graphql-laravel/config/config.php Line 227 in d1be5a6 You can remove or replace this execution middleware and inject into your resolver whatever you need. |
Beta Was this translation helpful? Give feedback.
That's coming from
AddAuthUserContextValueMiddlewarewhich by default is added via execution_middleware in the configgraphql-laravel/config/config.php
Line 227 in d1be5a6
You can remove or replace this execution middleware and inject into your resolver whatever you need.