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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

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

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

              Created:
              Updated:
              Resolved: