Add CollectionInfo::isView()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 2.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • PHP Drivers
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      It's a convenience method to check if the collection's type is `view`

      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      No, it's self-explanatory

      3. Which versions of the driver/connector does this apply to?
      2.2

      Show
      1. What would you like to communicate to the user about this feature? It's a convenience method to check if the collection's type is `view` 2. Would you like the user to see examples of the syntax and/or executable code and its output? No, it's self-explanatory 3. Which versions of the driver/connector does this apply to? 2.2
    • None
    • None
    • None
    • None
    • None
    • None

      Reviewing https://github.com/mongodb/laravel-mongodb/pull/3327

      Finding if a collection is a View checking the value of `$collectionInfo->getType()`.

      Adding a `isView()` helper would be convenient.

            Assignee:
            Pauline Vos
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: