Capped collection documentation examples lack setup/context

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: