{"action":"closed","issue":{"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/70","labels_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/70/comments","events_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/70/events","html_url":"https://github.com/RisingStack/graffiti-mongoose/issues/70","id":120930099,"number":70,"title":"Global ID returned in Query vs. ID used in Mutation","user":{"login":"vangavroche","id":1776935,"avatar_url":"https://avatars.githubusercontent.com/u/1776935?v=3","gravatar_id":"","url":"https://api.github.com/users/vangavroche","html_url":"https://github.com/vangavroche","followers_url":"https://api.github.com/users/vangavroche/followers","following_url":"https://api.github.com/users/vangavroche/following{/other_user}","gists_url":"https://api.github.com/users/vangavroche/gists{/gist_id}","starred_url":"https://api.github.com/users/vangavroche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vangavroche/subscriptions","organizations_url":"https://api.github.com/users/vangavroche/orgs","repos_url":"https://api.github.com/users/vangavroche/repos","events_url":"https://api.github.com/users/vangavroche/events{/privacy}","received_events_url":"https://api.github.com/users/vangavroche/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-08T04:50:06Z","updated_at":"2015-12-08T14:27:28Z","closed_at":"2015-12-08T14:27:28Z","body":"It looks like the object ID returned in query is converted to GlobalId (by the graphql-relay since the globalIdField is used).\r\n\r\nBut in the mutation, the ID sent from the client is directly passed to the Mongo so some casting error will be reported. https://github.com/RisingStack/graffiti-mongoose/blob/master/src/schema/schema.js#L120\r\n\r\nWill it be fixed in the framework, or should I handle it in the hooks?\r\n\r\nThanks"}}