{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/116","repository_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet","labels_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/116/comments","events_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/116/events","html_url":"https://github.com/graphql-dotnet/graphql-dotnet/issues/116","id":163246025,"number":116,"title":"Provide json property names in ExecutionResult","user":{"login":"ManuelDeLeon","id":4257750,"avatar_url":"https://avatars.githubusercontent.com/u/4257750?v=3","gravatar_id":"","url":"https://api.github.com/users/ManuelDeLeon","html_url":"https://github.com/ManuelDeLeon","followers_url":"https://api.github.com/users/ManuelDeLeon/followers","following_url":"https://api.github.com/users/ManuelDeLeon/following{/other_user}","gists_url":"https://api.github.com/users/ManuelDeLeon/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelDeLeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelDeLeon/subscriptions","organizations_url":"https://api.github.com/users/ManuelDeLeon/orgs","repos_url":"https://api.github.com/users/ManuelDeLeon/repos","events_url":"https://api.github.com/users/ManuelDeLeon/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelDeLeon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-06-30T19:17:18Z","updated_at":"2016-07-01T15:55:01Z","closed_at":null,"body":"Shouldn't ExecutionResult provide the json property names with the correct case?\r\n\r\n```cs\r\n    public class ExecutionResult\r\n    {\r\n        [JsonProperty(PropertyName = \"data\")]\r\n        public object Data { get; set; }\r\n\r\n        [JsonProperty(PropertyName = \"errors\", NullValueHandling = NullValueHandling.Ignore)]\r\n        public ExecutionErrors Errors { get; set; }\r\n    }\r\n```\r\n\r\nThat way you don't get errors if you decide not to force camelCase on your JSON objects:\r\n\r\n```cs\r\n    public static class WebApiConfig\r\n    {\r\n        public static void Register(HttpConfiguration config)\r\n        {\r\n            config.Formatters.Clear();\r\n\r\n            //var settings = new JsonSerializerSettings();\r\n            //settings.ContractResolver = new CamelCasePropertyNamesContractResolver();\r\n\r\n            //config.Formatters.Add(new JsonMediaTypeFormatter { Indent = true, SerializerSettings = settings });\r\n            config.Formatters.Add(new JsonMediaTypeFormatter { Indent = true });\r\n\r\n            // Web API routes\r\n            config.MapHttpAttributeRoutes();\r\n\r\n            config.Routes.MapHttpRoute(\r\n                name: \"DefaultApi\",\r\n                routeTemplate: \"api/{controller}/{id}\",\r\n                defaults: new { id = RouteParameter.Optional }\r\n            );\r\n        }\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/comments/229982850","html_url":"https://github.com/graphql-dotnet/graphql-dotnet/issues/116#issuecomment-229982850","issue_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/116","id":229982850,"user":{"login":"ManuelDeLeon","id":4257750,"avatar_url":"https://avatars.githubusercontent.com/u/4257750?v=3","gravatar_id":"","url":"https://api.github.com/users/ManuelDeLeon","html_url":"https://github.com/ManuelDeLeon","followers_url":"https://api.github.com/users/ManuelDeLeon/followers","following_url":"https://api.github.com/users/ManuelDeLeon/following{/other_user}","gists_url":"https://api.github.com/users/ManuelDeLeon/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelDeLeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelDeLeon/subscriptions","organizations_url":"https://api.github.com/users/ManuelDeLeon/orgs","repos_url":"https://api.github.com/users/ManuelDeLeon/repos","events_url":"https://api.github.com/users/ManuelDeLeon/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelDeLeon/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T15:55:01Z","updated_at":"2016-07-01T15:55:01Z","body":"Making it configurable doesn't make much sense. Wouldn't you agree with following?\r\n\r\n1) The client should receive the object keys in whatever casing the schema has. If the schema says `Name` the object key should be `Name`, not `name`.\r\n\r\n2) The client should receive the object keys in whatever casing their alias has. If they query `Name: name` the object key should be `Name`, not `name`."}}
{"actor":{"display_login":"ManuelDeLeon"}}