Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5384

Capped collection documentation examples lack setup/context

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 8.0.1
    • Affects Version/s: None
    • Component/s: Docs

      The documentation in https://www.mongodb.com/docs/mongoid/master/reference/collection-configuration/ shows how to create a capped collection. The code example references `client` (which is meant to be a Mongo::Client) but doesn't say how the user is supposed to obtain it. The example should be self-contained, for example it can define a model and use Model.collection.client to get to the client.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: