I am developing a Web API with Laravel, and I want to use Lighthouse to move from REST to GraphQL.
Until now, the controller has read
auth ()-> id and set it in the user_id column of the record to be added.
How can I set user_id to
auth ()-> id in Lighthouse?
I solved myself. @inject directive