mongoframes/frames.py
def ids(cls, filter=None, **kwargs):
        """Return a list of Ids for documents matching the filter"""
        from mongoframes.queries import Condition, Group, to_refs

        # Find the documents
        if isinstance(filter, (Condition, Group)):
            filter = filter.to_dict()

        documents = cls.get_collection().find(
            to_refs(filter),
            projection={'_id': True},
            **kwargs
            )

        return [d['_id'] for d in list(documents)]
Return a list of Ids for documents matching the filter
Return a list of Ids for documents matching the filter
Return a list of Ids for documents matching the filter
def ids(cls, filter=None, **kwargs):
        from mongoframes.queries import Condition, Group, to_refs
        if isinstance(filter, (Condition, Group)):
            filter = filter.to_dict()
        documents = cls.get_collection().find(
            to_refs(filter),
            projection={'_id': True},
            **kwargs
            )
        return [d['_id'] for d in list(documents)]
def ids ( cls , filter = None , ** kwargs ) : from mongoframes . queries import Condition , Group , to_refs if isinstance ( filter , ( Condition , Group ) ) : filter = filter . to_dict ( ) documents = cls . get_collection ( ) . find ( to_refs ( filter ) , projection = { '_id' : True } , ** kwargs ) return [ d [ '_id' ] for d in list ( documents ) ]
Return a list of Ids for documents matching the filter
Return a list of Ids for documents matching the filter
"""Return a list of Ids for documents matching the filter""" # Find the documents
cls
filter