<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shwld</author_name>
  <author_url>https://blog.hatena.ne.jp/shwld/</author_url>
  <blog_title>もふもふ技術部</blog_title>
  <blog_url>https://www.mof-mof.co.jp/tech-blog/</blog_url>
  <categories>
    <anon>graphql-ruby</anon>
    <anon>GraphQL</anon>
    <anon>Rails</anon>
  </categories>
  <description>graphqlでエラーを返す方法はいくつかあり、それぞれメリデメありますが、Unionで返すのが好みです。 例えば、以下のようにmutationで実行時のバリデーションエラーを共通のフォーマットで返すことを考えてみました。 mutation createPost($input: CreatePostInput!) { createPost(input: $input) { result { ... on Post { id name } ... on InvalidObject { errors { fullMessage } } } } } このクエリを見るとわかるようにCreate, Up…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mof-mof.co.jp%2Ftech-blog%2Fgraphql-ruby-union-result&quot; title=&quot;GraphQL RubyでバリデーションエラーをUnion Typeで返す - もふもふ技術部&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-05 00:00:00</published>
  <title>GraphQL RubyでバリデーションエラーをUnion Typeで返す</title>
  <type>rich</type>
  <url>https://www.mof-mof.co.jp/tech-blog/graphql-ruby-union-result</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
