{"action":"closed","issue":{"url":"https://api.github.com/repos/graphql-python/graphql-django-view/issues/2","labels_url":"https://api.github.com/repos/graphql-python/graphql-django-view/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/graphql-python/graphql-django-view/issues/2/comments","events_url":"https://api.github.com/repos/graphql-python/graphql-django-view/issues/2/events","html_url":"https://github.com/graphql-python/graphql-django-view/issues/2","id":117119630,"number":2,"title":"Cannot access request within mutation","user":{"login":"adamcharnock","id":138215,"avatar_url":"https://avatars.githubusercontent.com/u/138215?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcharnock","html_url":"https://github.com/adamcharnock","followers_url":"https://api.github.com/users/adamcharnock/followers","following_url":"https://api.github.com/users/adamcharnock/following{/other_user}","gists_url":"https://api.github.com/users/adamcharnock/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcharnock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcharnock/subscriptions","organizations_url":"https://api.github.com/users/adamcharnock/orgs","repos_url":"https://api.github.com/users/adamcharnock/repos","events_url":"https://api.github.com/users/adamcharnock/events{/privacy}","received_events_url":"https://api.github.com/users/adamcharnock/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-16T13:07:40Z","updated_at":"2015-11-16T15:44:57Z","closed_at":"2015-11-16T15:44:57Z","body":"I am creating a new model within a mutation. I would like to set the model's `created_by` field to point to the current user (using `request.user`). However, AFAIK the request object is not available within a mutation's `mutate_and_get_payload()` method.\r\n\r\nNote: It is entirely possible that I'm going about this the wrong way, I'm still new to GraphQL."}}