Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-883

cannot transform type bson.D to a BSON Document

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • 1.0.1
    • BSON, Connections
    • None

    Description

      CountDocuments(context.Background(), bsonx.Doc{})

      will report error:

      cannot transform type bson.D to a BSON Document: WriteArray can only write a Array while positioned on a Element or Value but is positioned on a TopLevel

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerryzhang JerryZhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: