Skip to content
Advertisement

php/codeigniter firestore update giving error InvalidArgumentException Input missing required one or more required keys

I am trying to connect admin panel on php-codeigniter with firestore/firebase . Insertion,Fetch and Set functions are working fine but when I try to update ( update a single key ) it gives InvalidArgumentException . I am following the official documentation here . I am new to firestore. Suggestions are appreciated.

Here’s my code

JavaScript

Error Output

JavaScript

Advertisement

Answer

According to my understanding of provided documentation update syntax should be like this:

JavaScript

Here is API documentation. The syntax from the code should work with set (reference).

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement