Challenge 4: Firestore

Previous Challenge Next Challenge

Introduction

Cloud Firestore is a flexible, scalable database for mobile, web, and server development. Our app is also using this very useful service, but something is off.

Description

Similar to the previous challenge, browse to /firestore and fix the issue.

Warning
The mode you select is permanent for the project and cannot be changed, so choose wisely.

Note
The Compute Engine default service account has been assigned the right roles to access Firestore. If you choose any other service account for your Cloud Run app, you’ll have to make sure that it has the right permissions.

Success Criteria

  • The tests in firestore.test.js are all passing
  • No code change is needed for this challenge

Learning Resources

  • Different modes for Firestore

Tips

  • When in doubt, check the source code

Previous Challenge Next Challenge