Closed datenarong closed 5 years ago
cur, err := collection.Find(context.Background(), nil) to cur, err := collection.Find(context.Background(), bson.D{{}})
cur, err := collection.Find(context.Background(), nil)
cur, err := collection.Find(context.Background(), bson.D{{}})
Thank you for all your teaching. "This was the best teacher's course"
You're welcome, glad you enjoyed the course! Thanks for the PR, it seems MongoDB loves to break their drivers :)
The error message "document is nil" is about the filter in the Find(). Change the line
cur, err := collection.Find(context.Background(), nil)
tocur, err := collection.Find(context.Background(), bson.D{{}})
Thank you for all your teaching. "This was the best teacher's course"