<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yutaono</author_name>
  <author_url>https://blog.hatena.ne.jp/yutaono/</author_url>
  <blog_title>yohtn</blog_title>
  <blog_url>https://yohtn.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>mongoDB</anon>
  </categories>
  <description>MongoDBのオブジェクトモデリングツールであるMongooseをつかったドキュメントの更新方法です。Userコレクションのuser_idが&quot;001&quot;のドキュメント一つに対して、user_nameを&quot;user2&quot;に変更します。 db.User.findOne( { user_id: &quot;001&quot; }, function(err, doc) { if(err || doc===null) { return false; } doc.user_name = &quot;usr2&quot;; doc.save(); }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohtn.hatenablog.com%2Fentry%2F2013%2F09%2F12%2F171333&quot; title=&quot;Mongooseをつかったドキュメントの更新 - yohtn&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>2013-09-12 17:13:33</published>
  <title>Mongooseをつかったドキュメントの更新</title>
  <type>rich</type>
  <url>https://yohtn.hatenablog.com/entry/2013/09/12/171333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
