<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hs_hachi</author_name>
  <author_url>https://blog.hatena.ne.jp/hs_hachi/</author_url>
  <blog_title>個人的なまとめ</blog_title>
  <blog_url>https://hachi.hatenablog.com/</blog_url>
  <categories>
    <anon>MongoDB</anon>
  </categories>
  <description>仕事中にターミナル上からMongoをいじれなかったので家で試す。 うむ、悔しい。 やりたいこと 条件を満たすコレクションの一部のフィールドを一括で更新する。 RDBMSとの違い 今までは update テーブル名 set 列名1 = 値1, 列名2 = 値2 where 列名 = 条件 とかでいけたので、それでいけるかなーと思ってたら違ってました。 Mongoのマニュアルには以下のように書かれていました。 update() は、与えられた条件にマッチするドキュメント全体を新しいオブジェクトで置き換えます。一部の項目だけ更新したい場合には、下記のmodifierを使います。 そして次のようにも書…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhachi.hatenablog.com%2Fentry%2F20111011%2F1318350372&quot; title=&quot;特定フィールドの一括更新方法 - 個人的なまとめ&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>2011-10-11 01:26:12</published>
  <title>特定フィールドの一括更新方法</title>
  <type>rich</type>
  <url>https://hachi.hatenablog.com/entry/20111011/1318350372</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
