<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>MongoDB</anon>
  </categories>
  <description>&gt; db.controltable.findOne({ id: 123 }) { &quot;_id&quot; : ObjectId(&quot;xxxxxxxxxxxxxxxxxxxxxxxx&quot;), &quot;id&quot; : 123, &quot;name&quot; : &quot;ほげ&quot;, &quot;control&quot; : { &quot;within&quot; : [ &quot;Alpha&quot;, &quot;Bravo&quot;, &quot;Charlie&quot;, &quot;Delta&quot; ] } } .control.within[] の配列の長さを短くしたい $pop をつかい、配列からひとつ取得することで末尾を削除する 1段深いところにあるので、つなげて &quot;control.within&quot; と書く &gt; db.controlta…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20201024%2Fmongodb&quot; title=&quot; MongoDBで、配列の要素数を減らす - 揮発性のメモ２&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1577169589465165</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-24 12:00:00</published>
  <title> MongoDBで、配列の要素数を減らす</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20201024/mongodb</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
