Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Firebaseのデータ更新のススメ
Search
hiro-nagami
June 19, 2019
Programming
0
330
Firebaseのデータ更新のススメ
hiro-nagami
June 19, 2019
Tweet
Share
More Decks by hiro-nagami
See All by hiro-nagami
ReactでAtomic Design
hiro3
2
76
Other Decks in Programming
See All in Programming
アメ車でサンノゼを走ってきたよ!
s_shimotori
0
220
Swift Concurrency - 状態監視の罠
objectiveaudio
2
520
(Extension DC 2025) Actor境界を越える技術
teamhimeh
1
250
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
380
Catch Up: Go Style Guide Update
andpad
0
230
開発生産性を上げるための生成AI活用術
starfish719
3
1.1k
AI Coding Meetup #3 - 導入セッション / ai-coding-meetup-3
izumin5210
0
3.3k
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
200
20251016_Rails News ~Rails 8.1の足音を聴く~
morimorihoge
1
360
Domain-centric? Why Hexagonal, Onion, and Clean Architecture Are Answers to the Wrong Question
olivergierke
2
880
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
130
overlayPreferenceValue で実現する ピュア SwiftUI な AdMob ネイティブ広告
uhucream
0
180
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
What's in a price? How to price your products and services
michaelherold
246
12k
How GitHub (no longer) Works
holman
315
140k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Building an army of robots
kneath
306
46k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
Large-scale JavaScript Application Architecture
addyosmani
514
110k
The Cost Of JavaScript in 2023
addyosmani
55
9k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.7k
Agile that works and the tools we love
rasmusluckow
331
21k
Transcript
Firebase Firestore σʔλߋ৽ͷϙΠϯτ
FIREBASEͷσʔλߋ৽ͷεεϝ ࣗݾհ
FIREBASEͷσʔλߋ৽ͷεεϝ ࠓͷςʔϚ Firebase DBΛͬͯͯ ߋ৽ϩδοΫͰ٧·ͬͨ
FIREBASEͷσʔλߋ৽ͷεεϝ ҎԼͷΑ͏ͳػೳΛ࣮ ཧऀ Ճϝϯόʔ ❶ ট ❷ ࢀՃ άϧʔϓ
FIREBASEͷσʔλߋ৽ͷεεϝ FirebaseͰDBΛ ΞϓϦ͔Βߋ৽Ͱ͖Δ
FIREBASEͷσʔλߋ৽ͷεεϝ FirebaseͰDBΛ ΞϓϦ͔Βߋ৽Ͱ͖Δ αʔόʔͷࣝͳͯ͘ ؆୯ʹσʔλ͕Ճɾߋ৽Ͱ͖Δ
FIREBASEͷσʔλߋ৽ͷεεϝ ఆ͢Δσʔλߏ Ϣʔβʔ - Id: ϢʔβʔID - Name: Ϣʔβʔ໊ -
JoinedGroup: ࢀՃ͍ͯ͠Δάϧʔϓ άϧʔϓ - Id: άϧʔϓID - Admin: ཧऀͷϢʔβʔID - Members: ࢀՃ͍ͯ͠ΔϝϯόʔͷID - Invited: টதͷϢʔβʔID
FIREBASEͷσʔλߋ৽ͷεεϝ ྲྀΕ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ Group => Invited
❷ ট௨ ❸ ঝ - ࣗͷࢀՃάϧʔϓՃ User => GroupsʹάϧʔϓIDՃ - άϧʔϓͷϝϯόʔʹࣗΛՃ Group => MembersʹϢʔβʔIDՃ
FIREBASEͷσʔλߋ৽ͷεεϝ DBͷηΩϡϦςΟઃఆ ↑ཧऀҎ֎ߋ৽Ͱ͖ͳ͍ // Ϣʔβʔ // άϧʔϓ
FIREBASEͷσʔλߋ৽ͷεεϝ ηΩϡϦςΟͷઃఆ͢Δͱɻɻ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ Group => Invited
❷ ট௨ ❸ ঝ - ࣗͷࢀՃάϧʔϓՃ User => GroupsʹάϧʔϓIDՃ - άϧʔϓͷϝϯόʔʹࣗΛՃ Group => MembersʹϢʔβʔIDՃ Ͱ͖ͳ͍ʂʂ
FIREBASEͷσʔλߋ৽ͷεεϝ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ ❷ ট௨ COULD FUNCTIONS
ADMIN ❸ ঝ Firebase Cloud FunctionsΛͬͯadminͰॻ͖ࠐΉ ❹ ॻ͖ࠐΈ
FIREBASEͷσʔλߋ৽ͷεεϝ DBͷηΩϡϦςΟઃఆ ↑Firebaseཧऀͷߋ৽ݖݶ
FIREBASEͷσʔλߋ৽ͷεεϝ άϧʔϓཧऀ ࢀՃऀ DB ❶ টϦετʹՃ ❷ ট௨ COULD FUNCTIONS
ADMIN ❸ ঝ ແࣄॻ͖ࠐΊΔ ❹ ॻ͖ࠐΈ
FIREBASEͷσʔλߋ৽ͷεεϝ ࠓͷςʔϚ Ճɾߋ৽ Firebase Cloud FunctionΛ ͏ͷ͕Φεεϝ