XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      How to select field.
      Exam.

      col.Find(nil).Select(bson.M{"name": 1}).One(&result)

      I see code at func "Decode" it's get all data in document from mongo before maping with struct in golang.

      Thank you.

      Attachments

        Activity

          People

            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            bakatest bakatest
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: