<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d-kimuson</author_name>
  <author_url>https://blog.hatena.ne.jp/d-kimuson/</author_url>
  <blog_title>Mobile Factory Tech Blog</blog_title>
  <blog_url>https://tech.mobilefactory.jp/</blog_url>
  <categories>
    <anon>バックエンド</anon>
    <anon>TypeScript</anon>
    <anon>開発</anon>
  </categories>
  <description>こんにちは！BC チームでエンジニアをしている id:d-kimuson です。 今回は外部リレーションに関して型安全性の乏しい TypeORM の Data Mapper パターンを独自のユーティリティ型を使ってちょっとマシにする方法を紹介します。 前提: TypeORM の外部リレーションについて TypeORM では ManyToMany 等のデコレータを使ってスキーマに Foreign Key を書くことができます。 // 公式ドキュメントのサンプルです @Entity() export class Category { @PrimaryGeneratedColumn() id: nu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mobilefactory.jp%2Fentry%2F2023%2F09%2F06%2F160000&quot; title=&quot;TypeORMのData Mapperパターンにおけるリレーションの型安全性を担保する - Mobile Factory Tech 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-09-06 16:00:00</published>
  <title>TypeORMのData Mapperパターンにおけるリレーションの型安全性を担保する</title>
  <type>rich</type>
  <url>https://tech.mobilefactory.jp/entry/2023/09/06/160000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
