{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-python/graphene-django/issues/376","repository_url":"https://api.github.com/repos/graphql-python/graphene-django","labels_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/376/comments","events_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/376/events","html_url":"https://github.com/graphql-python/graphene-django/issues/376","id":289586790,"number":376,"title":"Update a model with a mutation doesn't return a Global ID","user":{"login":"vied12","id":180617,"avatar_url":"https://avatars2.githubusercontent.com/u/180617?v=4","gravatar_id":"","url":"https://api.github.com/users/vied12","html_url":"https://github.com/vied12","followers_url":"https://api.github.com/users/vied12/followers","following_url":"https://api.github.com/users/vied12/following{/other_user}","gists_url":"https://api.github.com/users/vied12/gists{/gist_id}","starred_url":"https://api.github.com/users/vied12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vied12/subscriptions","organizations_url":"https://api.github.com/users/vied12/orgs","repos_url":"https://api.github.com/users/vied12/repos","events_url":"https://api.github.com/users/vied12/events{/privacy}","received_events_url":"https://api.github.com/users/vied12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-18T10:57:42Z","updated_at":"2018-04-11T06:58:52Z","closed_at":null,"author_association":"NONE","body":"Hello and well done for this module !\r\n\r\nI'm trying to update a model with a mutation, but the result include the django id instead of the expected `global id`. Did I miss something ?\r\nThanks a lot\r\n\r\n\r\n```python\r\n@classmethod\r\n    def mutate_and_get_payload(cls, root, info, **input):\r\n        ''' Add the context (request) to the serializer '''\r\n        track = None\r\n        if input.get('client_mutation_id'):\r\n            instance = SomeModel.objects.get(\r\n                pk=from_global_id(input['client_mutation_id'])[1],\r\n                created_by=info.context.user,\r\n            )\r\n        serializer = cls._meta.serializer_class(instance=instance, data=input, context={'request': info.context})\r\n        if serializer.is_valid():\r\n            return cls.perform_mutate(serializer, info)\r\n        else:\r\n            errors = [\r\n                ErrorType(field=key, messages=value)\r\n                for key, value in serializer.errors.items()\r\n            ]\r\n            return cls(errors=errors)\r\n```"},"comment":{"url":"https://api.github.com/repos/graphql-python/graphene-django/issues/comments/380347880","html_url":"https://github.com/graphql-python/graphene-django/issues/376#issuecomment-380347880","issue_url":"https://api.github.com/repos/graphql-python/graphene-django/issues/376","id":380347880,"user":{"login":"vied12","id":180617,"avatar_url":"https://avatars2.githubusercontent.com/u/180617?v=4","gravatar_id":"","url":"https://api.github.com/users/vied12","html_url":"https://github.com/vied12","followers_url":"https://api.github.com/users/vied12/followers","following_url":"https://api.github.com/users/vied12/following{/other_user}","gists_url":"https://api.github.com/users/vied12/gists{/gist_id}","starred_url":"https://api.github.com/users/vied12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vied12/subscriptions","organizations_url":"https://api.github.com/users/vied12/orgs","repos_url":"https://api.github.com/users/vied12/repos","events_url":"https://api.github.com/users/vied12/events{/privacy}","received_events_url":"https://api.github.com/users/vied12/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T06:58:52Z","updated_at":"2018-04-11T06:58:52Z","author_association":"NONE","body":"Hi!\r\nYes I have now the Django model id  and  would prefer to have the Global id.\r\n"}}
{"actor":{"display_login":"vied12"}}