Firebase Resource and Request Objects
📖 Scenario: You are building a simple Firebase Cloud Function that handles HTTP requests to manage user profiles. Each request will contain data about a user, and your function will process this data to create or update user profiles in Firestore.
🎯 Goal: Build a Firebase Cloud Function that correctly uses resource and request objects to read user data from the request and prepare a Firestore document resource for storing user profiles.
📋 What You'll Learn
Create a request object that contains user data fields:
userId, name, and email.Create a resource object representing a Firestore document path for the user profile.
Use the request data to build the Firestore document resource path.
Complete the Cloud Function setup to handle the request and prepare the resource.
💡 Why This Matters
🌍 Real World
This project simulates a backend function that processes user profile data sent from a frontend app and prepares the correct Firestore document path to store or update user information.
💼 Career
Understanding how to use request and resource objects in Firebase Cloud Functions is essential for backend developers working with serverless architectures and real-time databases.
Progress0 / 4 steps