Skip to content
Advertisement

Tag: google-cloud-firestore

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 Error Output Answer According to my

incrementing a field in firestore (php)

I am looking for a way to increment a field in firestore like in this documentation. The only caveat is that I am trying to use firestore Client Sdk or the Admin Sdk for php. What is a clean solution for incrementing a field in php. Does it require both read and write operations or is it possible with only

Advertisement