{"height":"190","title":"GraphQL\u306eEnum\u306e\u30a8\u30e9\u30fc\u306e\u89e3\u6d88","blog_title":"masavoid","author_url":"https://blog.hatena.ne.jp/masanolinks/","image_url":null,"blog_url":"https://masavo.jp/","version":"1.0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasavo.jp%2Fentry%2F2020%2F08%2F13%2F125305\" title=\"GraphQL\u306eEnum\u306e\u30a8\u30e9\u30fc\u306e\u89e3\u6d88 - masavoid\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","width":"100%","author_name":"masanolinks","url":"https://masavo.jp/entry/2020/08/13/125305","description":"\u72b6\u6cc1 Rails\u3067\u4ee5\u4e0bgraphql-ruby\u3092\u4f7f\u3063\u3066\u3044\u308b https://graphql-ruby.org/ create mutation\u306e payload\u3067 Enum\u3092\u53c2\u7167\u3057\u3088\u3046\u3068\u3057\u305f\u6642\u306b\u767a\u751f mutation { createAbc { input: { reason: a } }, { abc { reason } } enum AbcEnum { a b c } \u30a8\u30e9\u30fc\u5185\u5bb9 GraphQL::EnumType::UnresolvedValueError: Can't resolve enum AbcEnum for 0 \u539f\u56e0 && \u89e3\u6d88\u65b9\u6cd5 \u30e2\u30c7\u30eb\u306benum\u306e\u5bfe\u5fdc\u3064\u3051\u5fd8\u308c\u3066\u3044\u305f\u306e\u304c\u2026","type":"rich","categories":["Ruby","Rails","GraphQL"],"published":"2020-08-13 12:53:05"}