CRUD using Cloud Firestore
Learn how to execute CRUD operations using Cloud Firestore and React Native.
We'll cover the following...
CRUD (create, read, update, and delete) are the four basic
Create
As the name applies, the “create” operation in CRUD is used to create a new entry inside the database. To implement the “create” operation, we first have to import these functions from the @firebase/firestore
library:
-
collection
-
addDoc
import { collection, addDoc } from "@firebase/firestore";
Additionally, we also have to create a Firebase configuration file to connect our database with the React Native application. Note that this step is required for all the CRUD operations we discuss later in this lesson. ...