<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fits</author_name>
  <author_url>https://blog.hatena.ne.jp/fits/</author_url>
  <blog_title>なんとなくな Developer のメモ</blog_title>
  <blog_url>https://fits.hatenablog.com/</blog_url>
  <categories>
    <anon>MongoDB</anon>
  </categories>
  <description>MongoDB で指定の条件に合致する子要素のみを抽出する方法を調査してみました。 MongoDB 4.0.4 はじめに、下記 3つのドキュメントが sample コレクションへ登録されているとします。 ドキュメント内容 { &quot;_id&quot; : 1, &quot;items&quot; : [ { &quot;color&quot; : &quot;black&quot;, &quot;size&quot; : &quot;S&quot; }, { &quot;color&quot; : &quot;white&quot;, &quot;size&quot; : &quot;S&quot; } ] } { &quot;_id&quot; : 2, &quot;items&quot; : [ { &quot;color&quot; : &quot;red&quot;, &quot;size&quot; : &quot;L&quot; }, { &quot;color&quot; : &quot;blue&quot;, &quot;size&quot; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffits.hatenablog.com%2Fentry%2F2018%2F12%2F10%2F004155&quot; title=&quot; MongoDB で条件に合致する子要素を抽出 - なんとなくな Developer のメモ&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>2018-12-10 00:41:55</published>
  <title> MongoDB で条件に合致する子要素を抽出</title>
  <type>rich</type>
  <url>https://fits.hatenablog.com/entry/2018/12/10/004155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
