<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mizdra</author_name>
  <author_url>https://blog.hatena.ne.jp/mizdra/</author_url>
  <blog_title>mizdra's blog</blog_title>
  <blog_url>https://www.mizdra.net/</blog_url>
  <categories>
    <anon>graphql</anon>
  </categories>
  <description>msw を使うと、GraphQL API をモックしてダミーレスポンスを返せます。以下のような handler と、その他少々のセットアップコードを用意するだけで簡単にモックできます。 // src/mocks/handlers.js import { graphql } from 'msw'; export const handlers = [ // ブログのトップページのクエリをモックする handler。 // `graphql.query` の第一引数には、 // `query &lt;クエリ名&gt; { ... }` の `&lt;クエリ名&gt;` の部分に対応した文字列を書く。 graphql.que…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mizdra.net%2Fentry%2F2023%2F05%2F09%2F011956&quot; title=&quot;Relay でも msw の handler を型付きで書く - mizdra&amp;#39;s blog&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-05-09 01:19:56</published>
  <title>Relay でも msw の handler を型付きで書く</title>
  <type>rich</type>
  <url>https://www.mizdra.net/entry/2023/05/09/011956</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
