Answers for "firestore iterator stop"

0

firestore iterator stop

iter := q.Documents(ctx)
defer iter.Stop()
for {
	doc, err := iter.Next()
	if err == iterator.Done {
		break
	}
	if err != nil {
		// TODO: Handle error.
	}
	fmt.Println(doc.Data())
}
Posted by: Guest on December-04-2020

Browse Popular Code Answers by Language