cannot transform type bson.D to a BSON Document

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.0.1
    • Component/s: BSON, Connections
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

                Created:
                Updated:
                Resolved: