Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-264

Support all MongoDB\Driver\Query options for Find operations

    • Type: Icon: Epic Epic
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • Done
    • Query options for Find

      When MongoDB\Driver\Query::__construct() modifiers were deprecated in favor of top-level options (PHPC-783 for 1.2.0), the PHP library missed adding support for those options in its corresponding 1.1.0 release. Missing options include:

      • explain
      • hint
      • max
      • maxScan
      • min
      • returnKey
      • showRecordId
      • snapshot

      Until these options are supported, users will continue to have need of the deprecated modifiers option. Most of these options were intentionally omitted because they were never defined in the CRUD spec; however, since then a number of them have been added (most recently in b6cdaa8).

      The following options MongoDB\Driver\Query::__construct() options need not be supported by PHPLIB:

      • awaitData: supported by CRUD spec's cursorType enum option
      • exhaust: not mentioned in CRUD spec. Users can either use modifiers or PHPC directly
      • slaveOk: not mentioned in CRUD spec. Users can either use modifiers or PHPC directly, but readPreference should be used instead
      • tailable: supported by CRUD spec's cursorType enum option
      • singleBatch: not mentioned in CRUD spec. Although PHPC exposes this option, it also supports a negative limit.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: