79376715

Date: 2025-01-22 06:35:15
Score: 1
Natty:
Report link

Here is the answer, replace this line:

firestoreClient, err := app.Firestore(ctx)

With this line to set the database to something that's not default:

firestoreClient, err := firestore.NewClientWithDatabase(ctx, "guap-social", "guap-social", opt)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mabel Oza