Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1622

How to use the projection operators - $slice - in find()

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API
    • None

    Description

      How should I do to use the python api to perform this query: 

      db.collection.find( { field: value }, { array: {$slice: count } } );
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            GreatTony GuangTian Li [X]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: