class_docstr: MongoDB TaskRecord backend.
class_docstr_tok: ["MongoDB","TaskRecord","backend","."]
docstr: Find records matching a query dict, optionally extracting subset of keys.
  
  Returns list of matching records.
  
  Parameters
  ----------
  check : dict
      mongodb-style query argument
  keys : list of strs [optional]
      if specified, the subset of keys to extract.  msg_id will *always* be
      included.
docstr_tok: ["Find","records","matching","a","query","dict",",","optionally","extracting","subset","of","keys",".","Returns","list","of","matching","records",".","Parameters","--","--","--","--","--","check",":","dict","mongodb-style","query","argument","keys",":","list","of","strs","[","optional","]","if","specified",",","the","subset","of","keys","to","extract",".","msg_id","will","*","always","*","be","included","."]
code: def find_records(self, check, keys=None):
      """Find records matching a query dict, optionally extracting subset of keys.
  
      Returns list of matching records.
  
      Parameters
      ----------
      check : dict
          mongodb-style query argument
      keys : list of strs [optional]
          if specified, the subset of keys to extract.  msg_id will *always* be
          included.
      """
      if keys and "msg_id" not in keys:
          keys.append("msg_id")
      matches = list(self._records.find(check, keys))
      for rec in matches:
          rec.pop("_id")
      return matches
  
file_path: ipyparallel/ipyparallel/controller/mongodb.py
imports: from traitlets import Dict, Instance, List, Unicode
  from .dictdb import BaseDB
label_desc: Use image node_id 8 for calling the MongoDB obj's underlying member method code with example usage: obj.find_records(check, keys) and returns: matches