경로상의 전체 값을 변경하고 싶을때는 set()
경로상의 특정 값만 변경하고 싶을때는 update()를 사용한다.
set은 필드를 모두 채워주지 않을경우 값을 덮어쓸수 있기때문에 주의해서 사용해야 한다.
ref : https://stackoverflow.com/questions/45940176/firebase-good-use-case-for-set-instead-of-update
'Database' 카테고리의 다른 글
[MySQL] access denied for user 'username'@'localhost' (using password: no) 에러 해결방법 (0) | 2023.07.26 |
---|---|
[QueryDSL] fetchFirst, fetchOne 함수의 차이점 (0) | 2023.07.15 |
[MySQL] DB 덤프 후 다른 DB로 import 하는 방법 (0) | 2023.06.13 |
[MySQL] 최신 데이터(행) 구하기 (0) | 2023.05.22 |
[PostgreSQL] input file appears to be a text format dump. Please use psql 에러 처리 (0) | 2023.02.28 |