{"action":"created","issue":{"url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter/issues/20","repository_url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter","labels_url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter/issues/20/comments","events_url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter/issues/20/events","html_url":"https://github.com/selvinortiz/craft-plugin-doxter/pull/20","id":380011426,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMzE0MTc0","number":20,"title":"Add CraftQL support for `text` and `html` fields.","user":{"login":"mattstein","id":2488775,"node_id":"MDQ6VXNlcjI0ODg3NzU=","avatar_url":"https://avatars3.githubusercontent.com/u/2488775?v=4","gravatar_id":"","url":"https://api.github.com/users/mattstein","html_url":"https://github.com/mattstein","followers_url":"https://api.github.com/users/mattstein/followers","following_url":"https://api.github.com/users/mattstein/following{/other_user}","gists_url":"https://api.github.com/users/mattstein/gists{/gist_id}","starred_url":"https://api.github.com/users/mattstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattstein/subscriptions","organizations_url":"https://api.github.com/users/mattstein/orgs","repos_url":"https://api.github.com/users/mattstein/repos","events_url":"https://api.github.com/users/mattstein/events{/privacy}","received_events_url":"https://api.github.com/users/mattstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-13T00:51:53Z","updated_at":"2018-11-23T22:52:59Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter/pulls/20","html_url":"https://github.com/selvinortiz/craft-plugin-doxter/pull/20","diff_url":"https://github.com/selvinortiz/craft-plugin-doxter/pull/20.diff","patch_url":"https://github.com/selvinortiz/craft-plugin-doxter/pull/20.patch"},"body":"Hi Selvin! I'm playing with CraftQL and just Doxter to play nice. Previously, using the field handle in a GraphQL query would have resulted in an error:\r\n\r\nQuery:\r\n\r\n```\r\n{\r\n    entries {\r\n        ... on Blog {\r\n            doxterFieldHandle\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nResult:\r\n\r\n> String cannot represent non scalar value: instance of selvinortiz\\doxter\\fields\\data\\DoxterData\r\n\r\nThis PR requires a sub-selection of either `text` or `html`. Query:\r\n\r\n```\r\n{\r\n    entries {\r\n        ... on Blog {\r\n            doxterFieldHandle {\r\n                text\r\n                html\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nMore thrilling result:\r\n\r\n```\r\n{\r\n    \"data\": {\r\n        \"entries\": [\r\n        {\r\n            \"text\": \"GraphQL is the bee's knees, and it's just *begging* to get Markdown from Doxter.\",\r\n            \"html\": \"<p>GraphQL is the bee&#8217;s knees, and it&#8217;s just <em>begging</em> to get Markdown from Doxter.</p>\"\r\n        }\r\n    ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter/issues/comments/441326942","html_url":"https://github.com/selvinortiz/craft-plugin-doxter/pull/20#issuecomment-441326942","issue_url":"https://api.github.com/repos/selvinortiz/craft-plugin-doxter/issues/20","id":441326942,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTMyNjk0Mg==","user":{"login":"selvinortiz","id":1922523,"node_id":"MDQ6VXNlcjE5MjI1MjM=","avatar_url":"https://avatars2.githubusercontent.com/u/1922523?v=4","gravatar_id":"","url":"https://api.github.com/users/selvinortiz","html_url":"https://github.com/selvinortiz","followers_url":"https://api.github.com/users/selvinortiz/followers","following_url":"https://api.github.com/users/selvinortiz/following{/other_user}","gists_url":"https://api.github.com/users/selvinortiz/gists{/gist_id}","starred_url":"https://api.github.com/users/selvinortiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selvinortiz/subscriptions","organizations_url":"https://api.github.com/users/selvinortiz/orgs","repos_url":"https://api.github.com/users/selvinortiz/repos","events_url":"https://api.github.com/users/selvinortiz/events{/privacy}","received_events_url":"https://api.github.com/users/selvinortiz/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T22:52:59Z","updated_at":"2018-11-23T22:52:59Z","author_association":"OWNER","body":"@mattstein I'm sorry for the delay in getting back to you, Matt. Thank you for taking the time to add this in Doxter. I'll merge and cut a new release."}}
{"actor":{"display_login":"selvinortiz"}}