이렇게 하니까 오류가 났다.
Error: Element at index 0 is not a valid array element. Nested arrays are not supported. at validateArrayElement (/workspace/node_modules/@google-cloud/firestore/build/src/field-value.js:446:15) at ArrayUnionTransform.validate (/workspace/node_modules/@google-cloud/firestore/build/src/field-value.js:369:13) at /workspace/node_modules/@google-cloud/firestore/build/src/document.js:833:56 at Map.forEach (<anonymous>) at DocumentTransform.validate (/workspace/node_modules/@google-cloud/firestore/build/src/document.js:833:25) at WriteBatch.set (/workspace/node_modules/@google-cloud/firestore/build/src/write-batch.js:256:19) at DocumentReference.set (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:354:14) at /workspace/matjip_change.js:92:18 at processTicksAndRejections (node:internal/process/task_queues:96:5)
위의 글을 읽어보니 리스트를 추가하려면 이렇게 해야되나 보다.
해보니 된다 성공!
'개발 > Firebase' 카테고리의 다른 글
FCM 번역 (0) | 2023.01.13 |
---|---|
firebase dynamic link full path 구하기, (0) | 2023.01.12 |
Android channel 중요도 수준에 따른 FCM 동작 (0) | 2022.12.09 |
Firebase 번역 -Firebase Cloud Messaging(1-3) (0) | 2022.12.03 |
Firebase 번역 -Firebase Cloud Messaging(1-2) (0) | 2022.12.03 |