<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekorokkekun</author_name>
  <author_url>https://blog.hatena.ne.jp/nekorokkekun/</author_url>
  <blog_title>Laravelとねころっけくん5.8</blog_title>
  <blog_url>https://nekorokkekun.hatenablog.com/</blog_url>
  <categories>
    <anon>Firebase</anon>
  </categories>
  <description>Firebase Functionsのindex.js内で、指定したドキュメント内の値にアクセスしたい場合があります。具体的には以下の枠線で囲まれた部分をどのように取得するのか、という話です。 以下のコードを例にとってみてみましょう。 exports.addFanpageMember = functions.firestore .document(&quot;fanPages/{fanpageId}&quot;) .onCreate(async (snap, context) =&gt; { const val = snap.data(); try { await admin .firestore() .collect…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekorokkekun.hatenablog.com%2Fentry%2F2019%2F11%2F01%2F101536&quot; title=&quot;【Firebase Functions】指定したドキュメントのフィールドの値を取得する - Laravelとねころっけくん5.8&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-ak.f.st-hatena.com/images/fotolife/n/nekorokkekun/20191101/20191101101145.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-01 10:15:36</published>
  <title>【Firebase Functions】指定したドキュメントのフィールドの値を取得する</title>
  <type>rich</type>
  <url>https://nekorokkekun.hatenablog.com/entry/2019/11/01/101536</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
