Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2757

createIndexes guide is unclear

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.13.0
    • Affects Version/s: 1.12.0
    • Component/s: docs, libmongoc
    • Labels:
    • Environment:
      all

      is it possible to provide an additional public API function forĀ mongoc_collections to access the database, e.g. calledĀ  mongoc_collection_get_database()?

      The need arose from trying to replace the deprecated function mongoc_collection_create_index() with the recommended interface based on mongoc_database_write_command_with_opts(), but this requires the db. The function has just the collection as input, so it would be appreciated to access the ->db member this way.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            gustafn Gustaf Neumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: