{"action":"created","issue":{"url":"https://api.github.com/repos/lmcgartland/graphene-file-upload/issues/9","repository_url":"https://api.github.com/repos/lmcgartland/graphene-file-upload","labels_url":"https://api.github.com/repos/lmcgartland/graphene-file-upload/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/lmcgartland/graphene-file-upload/issues/9/comments","events_url":"https://api.github.com/repos/lmcgartland/graphene-file-upload/issues/9/events","html_url":"https://github.com/lmcgartland/graphene-file-upload/issues/9","id":343958251,"node_id":"MDU6SXNzdWUzNDM5NTgyNTE=","number":9,"title":"I am facing serious probelem, i am getting this error {message: \"mutate() missing 1 required positional argument: 'file'\",…}","user":{"login":"reaganscofield","id":29593266,"node_id":"MDQ6VXNlcjI5NTkzMjY2","avatar_url":"https://avatars2.githubusercontent.com/u/29593266?v=4","gravatar_id":"","url":"https://api.github.com/users/reaganscofield","html_url":"https://github.com/reaganscofield","followers_url":"https://api.github.com/users/reaganscofield/followers","following_url":"https://api.github.com/users/reaganscofield/following{/other_user}","gists_url":"https://api.github.com/users/reaganscofield/gists{/gist_id}","starred_url":"https://api.github.com/users/reaganscofield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaganscofield/subscriptions","organizations_url":"https://api.github.com/users/reaganscofield/orgs","repos_url":"https://api.github.com/users/reaganscofield/repos","events_url":"https://api.github.com/users/reaganscofield/events{/privacy}","received_events_url":"https://api.github.com/users/reaganscofield/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-24T09:33:36Z","updated_at":"2018-09-04T08:00:23Z","closed_at":null,"author_association":"NONE","body":"i have the following mutation code\r\n```python\r\nimport graphene\r\nfrom graphene_file_upload import Upload\r\nfrom graphene_django import DjangoObjectType\r\nfrom .models import realEstateAgencies\r\n\r\nclass CreateAgency(graphene.Mutation):\r\n    id = graphene.UUID()\r\n    authorName = graphene.String()\r\n    authorEmail = graphene.String()\r\n    authorPhone = graphene.Int()\r\n    agencyName = graphene.String()\r\n    agencyAddress = graphene.String()\r\n    agencyLogo = Upload() \r\n\r\n    class Arguments:\r\n        authorName = graphene.String()\r\n        authorEmail = graphene.String()\r\n        authorPhone = graphene.Int()\r\n        agencyName = graphene.String()\r\n        agencyAddress = graphene.String()\r\n        agencyLogo =   Upload()\r\n\r\n    def mutate(self, info, file, **kwargs): \r\n        authorName = kwargs.get('authorName')\r\n        authorEmail = kwargs.get('authorEmail')\r\n        authorPhone = kwargs.get('authorPhone')\r\n        agencyName = kwargs.get('agencyName')\r\n        agencyAddress = kwargs.get('agencyAddress')\r\n        agencyLogo = info.context.FILES.get(file) \r\n\r\n        actionCreate = realEstateAgencies(\r\n            authorName = authorName,\r\n            authorEmail = authorEmail,\r\n            authorPhone = authorPhone,\r\n            agencyName = agencyName,\r\n            agencyAddress = agencyAddress,\r\n            agencyLogo =   agencyLogo\r\n        )\r\n        actionCreate.save()\r\n        \r\n        return CreateAgency(\r\n            id = actionCreate.id\r\n        )\r\n```\r\n\r\ni am keeping getting the error i have even try to remove kwargs and leave only 3 parameraters and use info.context.get('otherData') but still facing the problem \r\n\r\nthanks in advance for help\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lmcgartland/graphene-file-upload/issues/comments/418276809","html_url":"https://github.com/lmcgartland/graphene-file-upload/issues/9#issuecomment-418276809","issue_url":"https://api.github.com/repos/lmcgartland/graphene-file-upload/issues/9","id":418276809,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODI3NjgwOQ==","user":{"login":"reaganscofield","id":29593266,"node_id":"MDQ6VXNlcjI5NTkzMjY2","avatar_url":"https://avatars2.githubusercontent.com/u/29593266?v=4","gravatar_id":"","url":"https://api.github.com/users/reaganscofield","html_url":"https://github.com/reaganscofield","followers_url":"https://api.github.com/users/reaganscofield/followers","following_url":"https://api.github.com/users/reaganscofield/following{/other_user}","gists_url":"https://api.github.com/users/reaganscofield/gists{/gist_id}","starred_url":"https://api.github.com/users/reaganscofield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaganscofield/subscriptions","organizations_url":"https://api.github.com/users/reaganscofield/orgs","repos_url":"https://api.github.com/users/reaganscofield/repos","events_url":"https://api.github.com/users/reaganscofield/events{/privacy}","received_events_url":"https://api.github.com/users/reaganscofield/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T08:00:23Z","updated_at":"2018-09-04T08:00:23Z","author_association":"NONE","body":"@davidroeca \r\n@japrogramer \r\n@lmcgartland \r\n\r\nthank you all for all your help!\r\ni solve my probem. on my client i was using axios which does not support multi/partdata \r\ni have changed feom axios to apollo everything works well\r\n\r\nthamk you again"}}
{"actor":{"display_login":"reaganscofield"}}