0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Firestoreひと言メモ(reference × snapshot)

Last updated at Posted at 2020-10-25

#referenceとは
参照情報でデータの実体は持っていない
1、collectionを参照するreference
2、documentを参照するreference
がある。


const ref = db.collection('item');

データの更新追加削除はreferenceに対して行う。(データベースを操作したい時はreference)

#snpashotとは
データの実体を取得するための橋渡しのようなもの
.data()をにて実体を取得できる。

#まとめ
refarence snapshot .data()の流れが基本のようだ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?