<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>qsona</author_name>
  <author_url>https://blog.hatena.ne.jp/qsona/</author_url>
  <blog_title>qsonaの日記</blog_title>
  <blog_url>https://qsona.hatenadiary.org/</blog_url>
  <categories>
    <anon>node.js</anon>
    <anon>JavaScript</anon>
    <anon>mongoose</anon>
  </categories>
  <description>node.jsいじってます。 さらっと備忘録 mongoose.Schema.Types.ObjectId ObjectIdの比較は===ではダメ、anObjectId.equals(anotherObjectId)を使う Array.indexOf(obj) // mongooseのモデル var FooSchema = new Schema( {bars: [{type: ObjectId, ref: hoge}])} Array.indexOf(obj)での比較は===でやってる underscore.jsの_.contains(array, obj)もそう。 // barsの中にanB…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqsona.hatenadiary.org%2Fentry%2F20130320%2F1363802104&quot; title=&quot;MongooseArrayのindexOf - qsonaの日記&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-03-20 02:55:04</published>
  <title>MongooseArrayのindexOf</title>
  <type>rich</type>
  <url>https://qsona.hatenadiary.org/entry/20130320/1363802104</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
