'How to solve the firstore error data must be an object

G [{"deviceId": "0", "facing": "environment", "groupId": "", "kind": "videoinput", "label": "0"}, {"deviceId": "1", "facing": "front", "groupId": "", "kind": "videoinput", "label": "1"}, {"deviceId": "audio-1", "groupId": "", "kind": "audioinput", "label": "Audio"}] ERROR [Error: firebase.firestore().collection().add(*) 'data' must be an object.]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source