CountDocuments doesn't work with a hint

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.0.1
    • Component/s: CRUD
    • None
    • Environment:
        mongodb v4.0.6
      driver v1.0.1
      OS: Ubuntu 18.04
      Go: 1.12
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am trying to run CountDocuments with a hint but it isn't working. It returns an error `unrecognized field hint`

       

      This is my code

       

      ```
      opts := &options.CountOptions{}
              opts.SetHint("formId_1_client_1_isActive_1__p_createdBy_1__created_at_1")
              count, err := r.collection.CountDocuments(ctx, query, opts)
              if err != nil {
                  return 0, err
              }
              return count, nil
      ```

            Assignee:
            Emmanuel Eppinger (Inactive)
            Reporter:
            Palash Nigam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: