For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Quick Reference
This page shows the driver syntax for several MongoDB operations in the Go driver and provides links to related reference and API documentation.
// Only searches on fields covered by text indexescursor, err := coll.Find(context.TODO(), bson.D{{"$text", bson.D{{"$search", "arts"}}}})
[{"firstName": "Emily" , "biography": "I am involved with arts and culture in my community."} ... ][{"firstName": "Juan" , "biography": "I attended the School of Arts for cello performance."} ... ]